/* refined_auth_styles.css - Dynamic Theme Support */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Variables for Dynamic Theming */
:root {
    --theme-color: #047857;
    /* Default: Emerald Green - will be overridden by inline styles */
    --accent-color: #f97316;
    /* Orange accent */
    --theme-light: rgba(4, 120, 87, 0.1);
    --theme-shadow: rgba(4, 120, 87, 0.3);
}

/* Main Body with Background */
body.auth-body {
    background-image: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 100%
    ),
    url('../images/admin-login-bg.jpg');
}
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    font-family: 'Poppins', sans-serif !important;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark Overlay */
.auth-overlay {
    background-color: rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Container */
.auth-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Card - Premium Glassmorphic Style - BIGGER */
.auth-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 32px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2),
        0 15px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 559px;
    /* INCREASED from 450px */
    padding: 4rem 3rem;
    /* INCREASED padding */
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Logo */
.auth-logo {
    text-align: center;
    margin-bottom: 35px;
}

.auth-logo img {
    height: auto;
    width: 290px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    overflow: hidden;
    box-sizing: content-box;
}

/* Headings */
.auth-card h4 {
    font-size: 30px;
    /* INCREASED from 28px */
    font-weight: 700;
    color: #102A1C;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    color: #6B7280;
    font-size: 15px;
    /* INCREASED from 14px */
    margin-bottom: 35px;
    display: block;
    font-weight: 500;
}

/* Tab Bar - Uses theme color */
.auth-tabs {
    background: rgba(240, 242, 245, 0.8);
    border-radius: 16px;
    padding: 6px;
    display: flex;
    margin-bottom: 35px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.auth-tab-link {
    flex: 1;
    text-align: center;
    padding: 12px 14px;
    /* INCREASED padding */
    color: #6B7280;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    /* INCREASED from 14px */
    border-radius: 12px;
    transition: all 0.3s ease;
    display: block;
}

.auth-tab-link:hover:not(.active) {
    color: var(--theme-color);
    background: var(--theme-light);
}

.auth-tab-link.active {
    background: var(--theme-color);
    /* DYNAMIC */
    color: #fff;
    box-shadow: 0 4px 15px var(--theme-shadow);
    /* DYNAMIC */
}

/* Form Styles */
.form-group-auth {
    margin-bottom: 22px;
    /* INCREASED from 20px */
    position: relative;
}

.form-control-auth {
    width: 100%;
    height: 62px;
    /* INCREASED from 60px */
    padding: 0 3.5rem 0 3.5rem;
    border-radius: 20px;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.7);
    color: #102A1C;
    font-size: 1.05rem;
    /* INCREASED */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    font-weight: 500;
    box-sizing: border-box;
    backdrop-filter: blur(5px);
}

.form-control-auth:hover {
    background: rgba(255, 255, 255, 0.9);
}

.form-control-auth:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--theme-color);
    /* DYNAMIC */
    box-shadow: 0 0 0 4px var(--theme-light), 0 4px 20px rgba(0, 0, 0, 0.1);
    /* DYNAMIC */
    transform: translateY(-2px);
}

/* Icons */
.input-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 20px;
    font-size: 19px;
    /* INCREASED */
    color: #9CA3AF;
    z-index: 2;
    transition: color 0.3s;
}

.form-control-auth:focus+.input-icon,
.form-group-auth:focus-within .input-icon {
    color: var(--theme-color);
    /* DYNAMIC */
}

/* Password Toggle */
.password-toggle-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9CA3AF;
    z-index: 10;
    padding: 5px;
    font-size: 18px;
}

.password-toggle-icon:hover {
    color: #374151;
}

/* Remember Me & Links */
.remember-me-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    /* INCREASED */
    font-size: 14px;
    color: #4B5563;
}

/* Checkbox */
.custom-switch-auth {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.custom-switch-auth input {
    display: none;
}

.slider-auth {
    width: 20px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 2px solid #D1D5DB;
    border-radius: 6px;
    position: relative;
    transition: 0.2s;
    margin-right: 10px;
}

.slider-auth:before {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 4px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: 0.2s;
}

input:checked+.slider-auth {
    background-color: var(--theme-color);
    /* DYNAMIC */
    border-color: var(--theme-color);
    /* DYNAMIC */
}

input:checked+.slider-auth:before {
    opacity: 1;
}

.forgot-password-link {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.forgot-password-link:hover {
    color: #ea580c;
    text-decoration: underline;
}

/* Login Button - Uses theme color */
.btn-auth-primary {
    background: var(--theme-color);
    color: #fff;
    border: none;
    box-shadow: 0 10px 25px var(--theme-shadow);
    width: 100%;
    padding: 0 26px;
    /* INCREASED */
    border-radius: 20px;
    font-size: 17px;
    /* INCREASED */
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    /* INCREASED from 60px */
}

.btn-auth-primary:hover {
    box-shadow: 0 15px 35px var(--theme-shadow);
    transform: translateY(-3px);
    background: var(--theme-color);
    filter: brightness(0.9);
}

.arrow-box {
    width: 40px;
    /* INCREASED */
    height: 40px;
    /* INCREASED */
    background: var(--theme-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 15px;
    transition: transform 0.3s;
}

.btn-auth-primary:hover .arrow-box {
    transform: translateX(3px) scale(1.1);
    background: var(--theme-color);
    filter: brightness(1.1);
}

/* Divider */
.or-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 28px 0;
    /* INCREASED */
    color: #9CA3AF;
    font-size: 14px;
    font-weight: 500;
}

.or-divider::before,
.or-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.or-divider span {
    padding: 0 15px;
}

/* Social Login */
.social-login-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* INCREASED */
}

.social-btn {
    width: 460px;
    max-width: 100%;
    height: 58px;
    /* INCREASED */
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.social-btn:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.social-btn span {
    color: #374151;
    font-weight: 600;
    font-size: 15px;
}

/* Alerts */
#error_message {
    background: rgba(254, 202, 202, 0.9);
    color: #991B1B;
    padding: 14px;
    /* INCREASED */
    border-radius: 12px;
    margin-bottom: 22px;
    font-size: 14px;
    text-align: left;
    border: 1px solid rgba(220, 38, 38, 0.2);
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-card {
        max-width: 100%;
        padding: 3rem 2rem;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 2.5rem 1.75rem;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 24px;
    }

    .auth-logo img {
        height: 65px;
    }

    .auth-card h4 {
        font-size: 26px;
    }

    .form-control-auth {
        height: 56px;
        font-size: 15px;
        padding-left: 3rem;
        padding-right: 3rem;
    }

    .input-icon {
        left: 15px;
        font-size: 17px;
    }

    .btn-auth-primary {
        height: 58px;
        font-size: 16px;
    }
}