/* ===================================
   ADMIN LOGIN PAGE - RESPONSIVE DESIGN
   ==================================== */

:root {
    --primary-color: #2196F3;
    --primary-dark: #1565C0;
    --primary-light: #64B5F6;
    --danger: #F44336;
    --success: #4CAF50;
    --warning: #FF9800;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F5F5F5;
    --border-color: #E0E0E0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Jost', Helvetica, Arial, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

.admin-login-section,
.admin-login-section * {
    box-sizing: border-box;
}

/* Admin Login Section */
.admin-login-section {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: clamp(14px, 3vw, 28px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.admin-login-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" fill-opacity="1" d="M0,64L48,80C96,96,192,128,288,128C384,128,480,96,576,112C672,128,768,192,864,197.3C960,203,1056,149,1152,138.7C1248,128,1344,160,1392,176L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    z-index: 1;
}

.admin-login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Login Container */
.admin-login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: minmax(320px, 540px) minmax(260px, 1fr);
    gap: 40px;
    align-items: center;
    justify-content: center;
}

/* Login Box */
.admin-login-box {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow);
    animation: slideInLeft 0.6s ease-out;
    width: 100%;
}

/* Login Header */
.admin-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.admin-logo-badge {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    color: white;
    box-shadow: var(--shadow);
}

.admin-login-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.admin-login-subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* Alerts */
.admin-alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    animation: slideDown 0.3s ease-out;
}

.admin-alert.alert-danger {
    background: #FFEBEE;
    color: var(--danger);
    border: 1px solid #FFCDD2;
}

.admin-alert.alert-success {
    background: #E8F5E9;
    color: var(--success);
    border: 1px solid #C8E6C9;
}

.admin-alert i {
    font-size: 16px;
}

/* Login Form */
.admin-login-form {
    margin: 0;
}

.form-group {
    margin-bottom: 20px;
}

.admin-form-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
    cursor: pointer;
}

.form-label i {
    font-size: 16px;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
    color: var(--text-dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form-control::placeholder {
    color: #999;
}

.form-checkbox {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-light);
    cursor: pointer;
    user-select: none;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* Auth Help */
.auth-help {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
    flex-wrap: wrap;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Login Button */
.admin-login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.admin-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(33, 150, 243, 0.4);
}

.admin-login-btn:active {
    transform: translateY(0);
}

.admin-login-btn i {
    font-size: 16px;
}

/* Login Footer */
.admin-login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.admin-login-footer p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.admin-login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.admin-login-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Info Cards */
.admin-login-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: slideInRight 0.6s ease-out;
}

.info-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: white;
}

.info-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #18324d;
    margin-bottom: 10px;
}

.info-card p {
    font-size: 14px;
    color: #415c78;
    margin: 0;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   RESPONSIVE DESIGN
   ==================================== */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .admin-login-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .admin-login-info {
        display: none;
    }

    .admin-login-box {
        padding: 30px;
        max-width: 620px;
        margin: 0 auto;
    }

    .admin-login-title {
        font-size: 28px;
    }
}

/* Small Tablet/Large Mobile (576px - 767px) */
@media (max-width: 767px) {
    .admin-login-section {
        padding: 15px;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .admin-login-box {
        padding: 25px;
        border-radius: 10px;
    }

    .admin-login-header {
        margin-bottom: 25px;
    }

    .admin-logo-badge {
        width: 70px;
        height: 70px;
        font-size: 35px;
        margin-bottom: 15px;
    }

    .admin-login-title {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .admin-login-subtitle {
        font-size: 13px;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-control {
        padding: 11px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .admin-login-btn {
        padding: 12px;
        font-size: 15px;
    }

    .admin-form-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .admin-login-footer {
        margin-top: 20px;
        padding-top: 15px;
    }
}

/* Mobile (< 576px) */
@media (max-width: 575px) {
    .admin-login-section {
        padding: 12px;
    }

    .admin-login-box {
        padding: 20px;
        border-radius: 8px;
    }

    .admin-login-header {
        margin-bottom: 20px;
    }

    .admin-logo-badge {
        width: 60px;
        height: 60px;
        font-size: 30px;
        margin-bottom: 12px;
    }

    .admin-login-title {
        font-size: 22px;
        margin-bottom: 6px;
    }

    .admin-login-subtitle {
        font-size: 12px;
    }

    .form-label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .form-control {
        padding: 10px 12px;
        font-size: 16px;
    }

    .admin-login-btn {
        padding: 11px;
        font-size: 14px;
        gap: 6px;
    }

    .admin-login-footer {
        margin-top: 15px;
        padding-top: 12px;
    }

    .admin-login-footer p {
        font-size: 13px;
        margin-bottom: 6px;
    }
}

/* Extra Small (< 360px) */
@media (max-width: 359px) {
    .admin-login-box {
        padding: 15px;
    }

    .admin-login-title {
        font-size: 20px;
    }

    .admin-logo-badge {
        width: 55px;
        height: 55px;
        font-size: 28px;
    }

    .form-control {
        padding: 9px 10px;
        font-size: 16px;
    }

    .admin-login-btn {
        padding: 10px;
        font-size: 13px;
    }
}
