/* ============================================================
   Backend Admin Login Page — custom styles
   Loaded only on site/login; does not affect other pages.
   AdminLTE 3.2 + Bootstrap 4
   ============================================================ */

/* Reset AdminLTE's login-page centering */
body.hold-transition.admin-login-page-body {
    background: #f0f4f8;
    display: block;
    padding: 0;
    min-height: 100vh;
}

/* ============================================================
   Full-screen split wrapper
   ============================================================ */

.admin-login-page {
    display: flex;
    min-height: 100vh;
    width: 100%;
    box-shadow: 0 8px 60px rgba(0, 0, 0, 0.22);
    max-width: 1280px;
    margin: 0 auto;
}

/* ============================================================
   Left brand panel
   ============================================================ */

.admin-brand-panel {
    flex: 0 0 42%;
    background: linear-gradient(155deg, #0d1117 0%, #1a2744 45%, #1e3a6e 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
}

/* Decorative circles */
.admin-brand-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}
.admin-brand-circle-1 { width: 480px; height: 480px; top: -160px; right: -160px; }
.admin-brand-circle-2 { width: 300px; height: 300px; bottom: -80px; left: -80px; }
.admin-brand-circle-3 { width: 180px; height: 180px; bottom: 38%; left: 58%; }

/* Subtle bottom-left grid accent */
.admin-brand-panel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0077cc, #00c9ff);
}

.admin-brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    width: 100%;
}

.admin-brand-content .admin-brand-logo {
    max-width: 150px;
    margin-bottom: 36px;
    filter: brightness(0) invert(1);
}

.admin-brand-content .admin-portal-badge {
    display: inline-block;
    background: rgba(0, 199, 255, 0.15);
    border: 1px solid rgba(0, 199, 255, 0.35);
    color: #00c9ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.admin-brand-content h1 {
    font-size: 25px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.35;
}

.admin-brand-content .admin-brand-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 40px;
    line-height: 1.7;
}

.admin-brand-features {
    text-align: left;
    display: inline-block;
}

.admin-brand-feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13.5px;
    margin-bottom: 14px;
    font-weight: 400;
}

.admin-brand-feature-item .af-icon {
    width: 30px;
    height: 30px;
    background: rgba(0, 119, 204, 0.3);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    color: #6ec6ff;
}

/* ============================================================
   Right form panel
   ============================================================ */

.admin-form-panel {
    flex: 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 56px;
}

.admin-form-inner {
    width: 100%;
    max-width: 420px;
}

/* Mobile logo */
.admin-mobile-logo {
    display: none;
    text-align: center;
    margin-bottom: 28px;
}

.admin-mobile-logo img {
    max-width: 120px;
}

/* Section heading */
.admin-form-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1d2e;
    margin-bottom: 4px;
}

.admin-form-subtitle {
    font-size: 13.5px;
    color: #6c757d;
    margin-bottom: 32px;
}

/* ============================================================
   Form controls — override site.css compact sizing for login
   ============================================================ */

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

.admin-form-inner .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    display: block;
}

.admin-form-inner .input-group .form-control,
.admin-form-inner .form-control {
    padding: .65rem .9rem !important;
    font-size: 14px !important;
    height: auto !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 8px !important;
    color: #212529;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff !important;
}

.admin-form-inner .input-group .form-control:focus {
    border-color: #1e3a6e !important;
    box-shadow: 0 0 0 3px rgba(30, 58, 110, 0.12) !important;
    outline: none;
}

/* Input group icon */
.admin-form-inner .input-group .input-group-append .input-group-text {
    padding: .65rem .85rem !important;
    font-size: 14px !important;
    background: #f8f9fa;
    border: 1.5px solid #d1d5db;
    border-left: none;
    border-radius: 0 8px 8px 0 !important;
    color: #6c757d;
}

.admin-form-inner .input-group .form-control {
    border-right: none !important;
    border-radius: 8px 0 0 8px !important;
}

.admin-form-inner .input-group .form-control:focus + .input-group-append .input-group-text {
    border-color: #1e3a6e !important;
    color: #1e3a6e;
}

/* Remember me row */
.admin-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.admin-form-inner .icheck-primary,
.admin-form-inner .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-form-inner .form-check-input {
    margin: 0;
    width: 15px;
    height: 15px;
    cursor: pointer;
    accent-color: #1e3a6e;
}

.admin-form-inner .form-check-label {
    font-size: 13px;
    color: #555;
    margin-bottom: 0;
    cursor: pointer;
}

/* Submit button */
.admin-submit-btn {
    display: block;
    width: 100%;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #1a2744 0%, #1e3a6e 60%, #0077cc 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-align: center;
}

.admin-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(30, 58, 110, 0.4);
}

.admin-submit-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Validation errors */
.admin-form-inner .text-danger {
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 991px) {
    .admin-brand-panel {
        display: none;
    }

    .admin-form-panel {
        padding: 40px 24px;
    }

    .admin-form-inner {
        max-width: 100%;
    }

    .admin-mobile-logo {
        display: block;
    }
}

@media (max-width: 575px) {
    .admin-form-panel {
        padding: 32px 16px;
    }
}
