
/* Theme - Light */
body.light-mode {
    background: linear-gradient(135deg, #ffffff, #f5f7fa);
    color: #222;
}

/* Theme - Dark */
body.dark-mode {
    background: linear-gradient(135deg, #0f0f0f, #1e1e1e);
    color: #e0e0e0;
}

/* Login Wrapper */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* center se upar le aata hai */
    min-height: 100vh;
    padding-top: 100px; /* jitna upar chahiye utna padhao */
    padding-left: 20px;
    padding-right: 20px;
}


/* Login Container */
.login-container {
    background: rgba(0, 123, 255, 0.1);
    padding: 35px 28px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-align: center;
    max-width: 400px;
    width: 100%;
    backdrop-filter: blur(10px);
    transition: 0.4s ease-in-out;
}

/* Light Theme - Container */
body.light-mode .login-container {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Dark Theme - Container */
body.dark-mode .login-container {
    background: rgba(30, 30, 30, 0.95);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.06);
}

/* Heading */
.login-container h2 {
    margin-bottom: 24px;
    font-size: 28px;
    text-transform: uppercase;
    font-weight: 700;
}

/* Input Fields */
input {
    width: 90%;
    padding: 14px 16px;
    margin: 12px 0;
    border-radius: 10px;
    font-size: 15px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    outline: none;
}

body.light-mode input {
    background: #fff;
    color: #222;
    border: 1px solid #ddd;
}

body.light-mode input::placeholder {
    color: #888;
}

body.light-mode input:focus {
    background: #f9f9f9;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

body.dark-mode input {
    background: #2b2b2b;
    color: #fff;
    border: 1px solid #444;
}

body.dark-mode input::placeholder {
    color: #bbb;
}

body.dark-mode input:focus {
    background: #333;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Button */
button {
    width: 45%;
    padding: 12px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
}

body.light-mode button {
    background: #888888;
    color: white;
}

body.light-mode button:hover {
    background: #666666;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

body.dark-mode button {
    background: linear-gradient(135deg, #ff9800, #007bff);
    color: white;
}

body.dark-mode button:hover {
    background: linear-gradient(135deg, #e36e13, #0056b3);
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(255, 193, 7, 0.3);
}

button:focus,
button:active {
    outline: none;
}

/* Forgot Password Link */
.reset-btn {
    display: block;
    margin: 14px 0;
    font-size: 15px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
}

body.light-mode .reset-btn {
    color: #007bff;
}

body.light-mode .reset-btn:hover {
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

body.dark-mode .reset-btn {
    color: #00f2ff;
}

body.dark-mode .reset-btn:hover {
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.6);
}

/* Error Message */
.error {
  color: #e74c3c;
  background-color: #ffe6e6;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  font-weight: bold;
}


/* Registration Link */
p {
    margin-top: 18px;
    font-size: 15px;
}

p a {
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s ease;
}

body.light-mode p a {
    color: #007bff;
}

body.light-mode p a:hover {
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

body.dark-mode p a {
    color: #00f2ff;
}

body.dark-mode p a:hover {
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.6);
}

body.dark-mode input:-webkit-autofill,
body.dark-mode input:-webkit-autofill:hover,
body.dark-mode input:-webkit-autofill:focus,
body.dark-mode input:-webkit-autofill:active {
    background-color: #2b2b2b !important;
    color: #fff !important;
    -webkit-box-shadow: 0 0 0px 1000px #2b2b2b inset !important;
    -webkit-text-fill-color: #fff !important;
    transition: background-color 9999s ease-in-out 0s;
}


/* Responsive */
@media (max-width: 480px) {
    .login-container {
        width: 95%;
        padding: 28px 20px;
    }
}
