/* ========================================
   ELDNET 2025 - AUTHENTICATION STYLES
   Theme: Clean, Trustworthy, Modern
   ======================================== */

.auth-container {
    width: 100%;
    max-width: 480px;
    padding: 1rem;
}

.auth-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    border: 1px solid #fff;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    position: relative;
    z-index: 10;
}

/* Optional header area with Logo/Icon */
.auth-card-header {
    text-align: center;
    padding: 3rem 2rem 1rem;
    background: #fff;
}

    .auth-card-header h2 {
        font-size: 1.75rem;
        font-weight: 800;
        color: var(--primary-dark); /* Dark blue title */
        margin-bottom: 0.5rem;
    }

    .auth-card-header p {
        color: var(--text-muted);
        font-size: 0.95rem;
    }

/* The gradient strip at the top of the card */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--primary-gradient);
}

.auth-card-body {
    padding: 0 2rem 3rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form .form-label {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .auth-form .form-label i {
        color: var(--accent-yellow); /* Yellow icons for visual interest */
    }

/* Styled Inputs */
.auth-form .form-control {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 0.8rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

    .auth-form .form-control:focus {
        background: #fff;
        border-color: #4364F7;
        box-shadow: 0 0 0 4px rgba(67, 100, 247, 0.1);
    }

/* Checkbox Style */
.auth-remember .form-check-input {
    border-color: #cbd5e1;
    cursor: pointer;
}

    .auth-remember .form-check-input:checked {
        background-color: var(--primary-dark);
        border-color: var(--primary-dark);
    }

/* Actions */
.auth-actions {
    margin-top: 1rem;
}

.btn-auth-submit {
    width: 100%;
    padding: 0.9rem;
    background: var(--primary-dark);
    border: none;
    color: white;
    font-weight: 700;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    font-size: 1rem;
    letter-spacing: 0.025em;
}

    .btn-auth-submit:hover {
        background: #0044b3;
        transform: translateY(-2px);
        box-shadow: 0 8px 15px rgba(0, 50, 150, 0.15);
    }

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

    .auth-links a {
        color: #4364F7;
        text-decoration: none;
        font-weight: 600;
    }

        .auth-links a:hover {
            color: #00369e;
            text-decoration: underline;
        }

/* Access Denied Special Styling */
.access-denied-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #fef2f2; /* Light Red BG */
}

.access-denied-card {
    background: #fff;
    max-width: 500px;
    width: 100%;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #fee2e2;
    overflow: hidden;
    position: relative;
}

.access-denied-icon {
    font-size: 4rem;
    color: #ef4444;
    margin-bottom: 1rem;
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%, 80% {
        transform: translate3d(2px, 0, 0);
    }

    30%, 50%, 70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%, 60% {
        transform: translate3d(4px, 0, 0);
    }
}
