﻿.auth-login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--lightest-blue) 0%, var(--blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.auth-login-container::before {
    content: '';
    position: absolute;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, var(--lightest-blue) 0%, transparent 60%);
    top: -20%;
    left: -20%;
    opacity: 0.4;
    animation: auth-rotate 60s linear infinite;
}

.auth-login-container::after {
    content: '';
    position: absolute;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, var(--blue) 0%, transparent 60%);
    bottom: -20%;
    right: -20%;
    opacity: 0.4;
    animation: auth-rotate 60s linear infinite reverse;
}

@keyframes auth-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.auth-login-card {
    background: rgba(242, 246, 248, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15),
                0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 3rem;
    max-width: 550px;
    width: 100%;
    margin: auto;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-login-card:hover {
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2),
                0 8px 20px rgba(0, 0, 0, 0.12);
}

.auth-login-card h2 {
    color: var(--blue);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.auth-login-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--lightest-blue), var(--blue));
    border-radius: 3px;
}

.auth-login-card .form-floating {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.auth-login-card .form-floating > label {
    position: relative;
    color: var(--text-light-black);
    padding: 0 0 0.5rem 0;
    font-weight: 500;
    order: -1;
    transform: none !important;
    opacity: 1;
}

.auth-login-card .form-floating > .form-control {
    height: auto;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(126, 142, 187, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.auth-login-card .form-floating > .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(77, 124, 254, 0.15);
    background: rgba(255, 255, 255, 1);
}

.auth-login-card .form-floating > .form-control::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.auth-login-card .btn-auth-primary {
    background: linear-gradient(45deg, var(--blue) 0%, var(--accent-color) 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: white;
    width: 100%;
}

.auth-login-card .btn-auth-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.auth-login-card .btn-auth-primary:hover {
    background: linear-gradient(45deg, var(--accent-color) 0%, var(--blue) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(77, 124, 254, 0.3);
}

.auth-login-card .btn-auth-primary:hover::before {
    left: 100%;
}

.auth-login-card .auth-checkbox {
    margin: 1rem 0;
}

.auth-login-card .auth-checkbox label {
    color: var(--text-light-black);
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-login-card .auth-checkbox .form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0;
    border: 2px solid var(--light-blue);
    transition: all 0.2s ease;
}

.auth-login-card .auth-checkbox .form-check-input:checked {
    background-color: var(--blue);
    border-color: var(--blue);
    box-shadow: 0 0 0 0.15rem rgba(77, 124, 254, 0.2);
}

.auth-login-card .auth-link {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.auth-login-card .auth-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, var(--accent-color), var(--blue));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.auth-login-card .auth-link:hover {
    color: var(--blue);
}

.auth-login-card .auth-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.auth-login-card .auth-text-center {
    margin-top: 2rem;
    text-align: center;
}

.auth-login-card .auth-text-center p {
    margin-bottom: 1rem;
}

.auth-login-card .text-danger {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .auth-login-container {
        padding: 1rem;
    }
    
    .auth-login-card {
        padding: 2rem 1.5rem;
    }
    
    .auth-login-card h2 {
        font-size: 1.75rem;
    }
    
    .auth-back-button {
        top: 1rem;
        left: 1rem;
    }
}

/* Back button styles */
.auth-back-button {
    position: absolute;
    top: 2rem;
    left: 2rem;
    color: black;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    z-index: 2;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    transition: background-color 0.3s ease;
}

.auth-back-button:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.auth-back-button i {
    font-size: 1.2rem;
}

/* Password input styles */
.password-input-group {
    position: relative;
    width: 100%;
}

.password-input-group .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 3rem;
    border: 2px solid rgba(126, 142, 187, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.password-input-group .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(77, 124, 254, 0.15);
    background: rgba(255, 255, 255, 1);
}

.password-input-group .password-toggle-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    color: var(--text-light-black);
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 5;
    cursor: pointer;
}

.password-input-group .password-toggle-btn:hover {
    opacity: 1;
}

.password-input-group .password-toggle-btn:focus {
    outline: none;
    box-shadow: none;
}

.password-input-group .password-toggle-btn i {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Remove browser password reveal button */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

/* Remove autofill styles */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: var(--text-light-black) !important;
}
