/* --- Auth Pages (Centered Glass Design) --- */
.auth-body {
    background-image: url('../images/auth_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.auth-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    /* Dark overlay for better visibility */
    backdrop-filter: blur(3px);
    /* Slight blur on background for focus */
    z-index: 1;
}

.auth-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 500px;
}

/* Hide the old split layout elements if they exist in markup */
.auth-left {
    display: none;
}

.auth-right {
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    /* Semi-transparent white */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.5s ease;
    display: block;
    /* Override flex */
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form-container {
    width: 100%;
    max-width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 2.2rem;
    color: #0f172a;
    /* Dark text */
    margin-bottom: 10px;
    font-weight: 800;
}

.auth-header p {
    color: #475569;
    font-size: 1rem;
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-weight: 600;
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1e293b;
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: var(--transition);
}

.input-wrapper input:focus {
    outline: none;
    background: white;
    border-color: #0284c7;
    /* Darker Blue */
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: #64748b;
    transition: var(--transition);
}

.input-wrapper input:focus+.input-icon {
    fill: #0284c7;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    cursor: pointer;
}

.forgot-pass {
    color: #0284c7;
    text-decoration: none;
    font-weight: 600;
}

.auth-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    box-shadow: 0 10px 20px -5px rgba(2, 132, 199, 0.4);
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    color: white;
    border-radius: 12px;
    cursor: pointer;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(2, 132, 199, 0.5);
    filter: brightness(1.1);
}

.auth-switch {
    text-align: center;
    color: #475569;
}

.auth-switch a {
    color: #0284c7;
    text-decoration: none;
    font-weight: 700;
}

.back-home {
    position: absolute;
    top: -40px;
    left: 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.back-home:hover {
    color: #38bdf8;
    background: none;
}

/* --- Validation Animations --- */
.validation-status {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    pointer-events: none;
    z-index: 10;
}

/* Spinner */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: #0284c7;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

.spinner.active {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Check Mark */
.checkmark-circle {
    width: 20px;
    height: 20px;
    position: relative;
    display: none;
    stroke: #22c55e;
}

.checkmark-circle.active {
    display: block;
}

/* Error Cross */
.error-cross {
    width: 20px;
    height: 20px;
    position: relative;
    display: none;
    color: #ef4444;
    font-size: 18px;
    text-align: center;
}

.error-cross.active {
    display: block;
}

.input-message {
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
    font-weight: 500;
}

.input-message.error {
    color: #ef4444;
    display: block;
}

.input-message.success {
    color: #22c55e;
    display: block;
}