/* =========================================
   ADMIN LOGIN PAGE STYLES - DIGANTA VIKAS
   ========================================= */

:root {
    --primary-navy: #0a2540;
    --primary-hover: #133863;
    --accent-red: #e63946;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

*::-webkit-scrollbar {
    width: 0px !important;
    height: 0px !important;
    display: none !important;
}

html,
body {
    height: 100%;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden !important;
    overflow-x: hidden !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #ffffff;
}

.split-screen {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* Left Pane: Building.jpg */
.left-building-pane {
    flex: 1.15;
    position: relative;
    background: url('../Building.jpg') center center / cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    overflow: hidden;
}

.building-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 37, 64, 0.4) 0%, rgba(10, 37, 64, 0.2) 40%, rgba(10, 37, 64, 0.88) 100%);
    z-index: 1;
}

.building-content {
    position: relative;
    z-index: 2;
}

.building-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 30px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.building-caption {
    color: #ffffff;
}

.building-caption h2 {
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 4px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
}

.building-caption p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Right Pane: Login Form */
.right-login-pane {
    flex: 0.85;
    min-width: 380px;
    max-width: 520px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    padding: 20px 36px;
    box-shadow: -10px 0 25px rgba(0, 0, 0, 0.04);
    z-index: 3;
    overflow: hidden !important;
}

.login-card-content {
    width: 100%;
    max-width: 370px;
    margin: auto;
}

.login-header {
    text-align: center;
    margin-bottom: 16px;
}

.school-logo {
    max-height: 75px;
    width: auto;
    max-width: 85%;
    margin-bottom: 10px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.school-title {
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--primary-navy);
    letter-spacing: -0.3px;
    margin-bottom: 2px;
    line-height: 1.2;
}

.portal-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
}

/* Compact Form Inputs */
.form-group {
    margin-bottom: 11px;
}

.form-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
    display: block;
}

.input-box {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 13px;
    color: #94a3b8;
    font-size: 0.9rem;
    pointer-events: none;
    transition: color 0.2s;
}

.form-control-custom {
    width: 100%;
    height: 40px;
    padding: 6px 12px 6px 38px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-main);
    background: #f8fafc;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.form-control-custom:focus {
    background: #ffffff;
    border-color: var(--primary-navy);
    box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.08);
    outline: none;
}

.input-box:focus-within .input-icon {
    color: var(--primary-navy);
}

.btn-pwd-toggle {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    font-size: 0.88rem;
}

.btn-pwd-toggle:hover {
    color: var(--primary-navy);
}

/* Compact CAPTCHA Section */
.captcha-box-wrap {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 14px;
}

.captcha-code-display {
    background: #ffffff;
    border: 1.5px dashed #cbd5e1;
    border-radius: 6px;
    padding: 3px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.captcha-code-text {
    font-family: 'Space Grotesk', 'Courier New', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: #1e293b;
    transform: skewX(-6deg);
}

.btn-captcha-reload {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-captcha-reload:hover {
    color: var(--primary-navy);
    border-color: var(--primary-navy);
    transform: rotate(90deg);
}

/* Submit Button */
.btn-login {
    background-color: var(--primary-navy);
    color: #ffffff;
    width: 100%;
    height: 42px;
    border: none;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(10, 37, 64, 0.12);
}

.btn-login:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(10, 37, 64, 0.18);
    color: #ffffff;
}

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

/* Alert */
.alert-error {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #dc2626;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 7px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.back-home-wrap {
    text-align: center;
    margin-top: 12px;
}

.back-home-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.back-home-link:hover {
    color: var(--primary-navy);
}

.footer-copyright {
    text-align: center;
    margin-top: 10px;
    font-size: 0.72rem;
    color: #94a3b8;
}

/* Mobile View: No Bottom Scroll, Clean Fit */
@media (max-width: 860px) {

    html,
    body {
        overflow: hidden !important;
        overflow-x: hidden !important;
        height: 100vh;
        width: 100%;
    }

    .split-screen {
        flex-direction: column;
        height: 100vh;
        width: 100%;
        overflow: hidden;
    }

    .left-building-pane {
        display: none;
    }

    .right-login-pane {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: 100vh;
        padding: 16px 20px;
        flex: 1;
        box-shadow: none;
        overflow: hidden !important;
    }

    .login-card-content {
        max-width: 360px;
    }

    .school-logo {
        max-height: 65px;
    }
}