/* ==========================================================================
   SMART SCHOOL - MODERN LOGIN PAGE STYLING (2026)
   Clean, polished, modern card aesthetic with smooth responsive layout
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
    font-size: 15px;
    font-weight: 400;
    color: #334155;
    background: #f1f5f9;
    height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.top-content {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    padding: 20px 0;
}

.inner-bg {
    width: 100%;
    padding: 20px 0;
}

.bgoffsetbg {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 85vh;
}

/* Glassmorphism Card Container */
.loginbg {
    background: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.04) !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    padding: 38px 36px !important;
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.loginbg:hover {
    box-shadow: 0 25px 55px -10px rgba(15, 23, 42, 0.15), 0 10px 20px -4px rgba(15, 23, 42, 0.06) !important;
}

.form-top {
    background: transparent;
    text-align: center;
    margin-bottom: 22px;
}

.form-top-left.logowidth {
    text-align: center;
    margin-bottom: 12px;
}

.form-top-left.logowidth img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.font-white {
    color: #0f172a !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.form-bottom {
    background: transparent;
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
    position: relative;
}

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

.form-control-feedback {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: block;
    width: 46px;
    height: 48px;
    line-height: 48px;
    text-align: center;
    pointer-events: none;
    color: #94a3b8;
    transition: color 0.2s;
}

.form-group:focus-within .form-control-feedback {
    color: #7367f0 !important;
}

.forgot {
    display: inline-block;
    margin-top: 18px;
    color: #7367f0 !important;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s;
}

.forgot:hover {
    color: #5e50ee !important;
    text-decoration: underline !important;
}

.loginbg .alert {
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 500;
    padding: 12px 16px;
    margin-bottom: 18px;
    border: none;
}

.loginbg .alert-danger {
    background: #fef2f2 !important;
    color: #b91c1c !important;
    border: 1px solid #fecaca !important;
}

.loginbg .alert-success {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0 !important;
}

.loginbg .text-danger {
    color: #dc2626 !important;
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
    display: block;
}

/* Captcha Styling */
#captcha_image img {
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
}

.catpcha {
    cursor: pointer;
    padding-left: 10px;
    color: #7367f0;
    font-size: 16px;
    transition: transform 0.2s;
}

.catpcha:hover {
    transform: rotate(90deg);
}

/* Right notice banner / backdrop on split screen */
.text-wrap {
    position: relative;
    height: 100vh;
    box-sizing: border-box;
    color: #fff;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #1e1b4b;
}

.text-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.75) 0%, rgba(67, 56, 202, 0.85) 100%);
    z-index: 1;
}

.text-wrap > div {
    position: relative;
    z-index: 2;
}

.loginright {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
    padding: 2.5rem !important;
    color: #ffffff;
}

.loginright h3 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.loginright p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

@media (max-width: 767px) {
    .loginbg {
        padding: 28px 22px !important;
        margin: 15px;
    }
}

/* Modern Forgot Password Link */
.forgot {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin-top: 18px !important;
    color: #7367f0 !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.forgot:hover {
    color: #5e50ee !important;
    transform: translateX(3px);
}

.forgot i {
    font-size: 13px;
}

/* Modern Alerts in Login */
.alert {
    border-radius: 12px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    padding: 12px 16px !important;
    margin-bottom: 20px !important;
    border: none !important;
}

.alert-danger {
    background: #fef2f2 !important;
    color: #b91c1c !important;
    border: 1px solid #fecaca !important;
}

.alert-success {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0 !important;
}

/* Form Icons & Captcha */
.has-feedback .form-control-feedback {
    top: 0 !important;
    height: 48px !important;
    line-height: 48px !important;
    color: #94a3b8 !important;
    font-size: 15px !important;
    width: 48px !important;
    text-align: center;
}

#captcha_image img {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    max-height: 44px;
}

.catpcha {
    cursor: pointer;
    font-size: 18px;
    color: #7367f0;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.catpcha:hover {
    transform: rotate(180deg);
    color: #5e50ee;
}
