* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body {
    background-color: #1c1230;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding:10px;
}
.form-container {
    background-color: #2a1b4a;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 500px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
h1 { font-size: 1.8rem; font-weight: 600; margin-bottom: 0.5rem; color: #fff; }
p { font-size: 0.9rem; color: #d1c4e9; margin-bottom: 1.5rem; }
p a { color: #bb86fc; text-decoration: none; font-weight: 500; }
p a:hover { text-decoration: underline; }

.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 90%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.notification.error { 
    background-color: #ff6b6b; 
    color: #ffffff; 
}
.notification.success { 
    background-color: #4caf50; 
    color: #ffffff; 
}

input[type="email"], input[type="password"], input[type="text"] {

    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 8px;
    background-color: #3c2f5f;
    color: #ffffff;
    font-size: 1rem;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
input::placeholder { color: #b0a8d1; }
input:focus { outline: none; box-shadow: 0 0 0 3px rgba(187, 134, 252, 0.4); }

.password-container { position: relative; margin-bottom: 1rem; }
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #bb86fc;
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}
.toggle-password:hover { color: #ffffff; }

button[type="submit"] {
    width: 100%;
    padding: 0.75rem;
    background-color: #bb86fc;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
button[type="submit"]:hover {
    background-color: #9f4ce8;
    transform: translateY(-1px);
}

/* Forgot Password Link */
.forgot-password {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    text-align: center;
}
.forgot-password a {
    color: #bb86fc;
    text-decoration: none;
    transition: color 0.3s ease;
}
.forgot-password a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Spinner Overlay */
#loading-overlay {
    display: none;
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(28, 18, 48, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 10;
}
.spinner {
    border: 4px solid #3c2f5f;
    border-top: 4px solid #bb86fc;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .form-container { padding: 1.5rem; }
    h1 { font-size: 1.5rem; }
    .notification {
        top: 10px;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
}
