/* ==========================================================
   SSPKM – Student login page (hostel/student)
   Split layout: hostel photo panel + clean sign-in card
   ========================================================== */
:root {
    --brand: #2d5f9c;
    --brand-2: #3a7cca;
    --accent: #f9583c;
    --accent-2: #f5702b;
    --ink: #1b2430;
    --muted: #667085;
    --ease: cubic-bezier(.22, .8, .3, 1);
}

html,
body {
    height: 100%;
}

body.sl-body {
    margin: 0;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    color: var(--ink);
    background: #f4f7fb;
    -webkit-font-smoothing: antialiased;
}

.sl-wrap {
    display: flex;
    min-height: 100vh;
}

.sl-body h1,
.sl-body h2,
.sl-body h3,
.sl-body h4,
.sl-body input,
.sl-body button,
.sl-body label {
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
}

/* AdminLTE forces Source Sans on headings */

/* ---------- left brand panel ---------- */
.sl-side {
    flex: 1 1 52%;
    position: relative;
    display: flex;
    align-items: center;
    color: #fff;
    padding: 60px 7%;
    background:
        linear-gradient(160deg, rgba(8, 26, 50, .93) 0%, rgba(14, 48, 90, .86) 55%, rgba(23, 74, 133, .72) 100%),
        url("../img/slider/home%201%202.jpg") center bottom/cover no-repeat #0f2f57;
}

.sl-side::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--brand-2));
}

.sl-side-in {
    max-width: 480px;
    animation: slIn .9s var(--ease) both;
}

.sl-logo {
    width: 110px;
    padding: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .35);
    margin-bottom: 26px;
}

.sl-side h2 {
    margin: 0 0 14px;
    font-size: 42px;
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.sl-side h2 b {
    font-weight: 800;
}

.sl-side p {
    margin: 0 0 26px;
    color: #c9d7ea;
    font-size: 15.5px;
    line-height: 1.8;
}

.sl-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sl-points li {
    padding: 8px 0;
    font-size: 15px;
    color: #e6eefa;
}

.sl-points i {
    color: var(--accent-2);
    margin-right: 10px;
    font-size: 17px;
    vertical-align: -1px;
}

/* ---------- right: sign-in card ---------- */
.sl-main {
    flex: 1 1 48%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.login-box.sl-box {
    width: 100%;
    max-width: 430px;
    margin: 0;
    animation: slIn .8s .1s var(--ease) both;
}

@keyframes slIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.sl-head {
    text-align: center;
    margin-bottom: 22px;
}

.sl-logo-sm {
    display: none;
    width: 84px;
    padding: 5px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(11, 31, 58, .18);
    margin-bottom: 14px;
}

.sl-head h1 {
    margin: 0 0 10px;
    font-size: 30px;
    font-weight: 700;
    color: var(--ink);
}

.sl-chip {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .05em;
    color: var(--brand);
    background: rgba(45, 95, 156, .10);
}

.sl-chip i {
    margin-right: 6px;
}

.login-box-body {
    background: #fff !important;
    border-radius: 24px;
    padding: 34px 34px 26px !important;
    border: 1px solid rgba(11, 31, 58, .06);
    box-shadow: 0 24px 60px rgba(11, 31, 58, .12);
}

.login-box-msg {
    margin: 0 0 24px !important;
    padding: 0 !important;
    text-align: center;
    color: var(--muted);
    font-size: 14.5px;
}

.has-feedback .form-control {
    height: 52px;
    padding: 0 16px 0 50px;
    border-radius: 14px;
    border: 1.5px solid #dfe5ee;
    box-shadow: none;
    font-size: 15px;
    color: var(--ink);
    transition: border-color .25s, box-shadow .25s;
}

.has-feedback .form-control:focus {
    border-color: var(--brand-2);
    box-shadow: 0 0 0 4px rgba(58, 124, 202, .15);
}

.has-feedback .form-control-feedback {
    left: 0;
    right: auto;
    width: 50px;
    height: 52px;
    line-height: 52px;
    color: #8a99b3;
    pointer-events: none;
}

.has-feedback .form-control:focus~.form-control-feedback {
    color: var(--brand-2);
}

.form-group.has-feedback {
    margin-bottom: 18px;
}

.form-group.has-feedback label {
    margin: 0;
    font-weight: 400;
    font-size: 13.5px;
    color: var(--muted);
    cursor: pointer;
}

.form-group.has-feedback label input {
    margin-right: 4px;
    accent-color: var(--brand);
}

/* sign-in button: full width (the old 8/4 grid had an empty left column) */
.login-box-body .row .col-xs-8 {
    display: none;
}

.login-box-body .row .col-xs-4 {
    width: 100%;
}

.login-btn {
    height: 52px;
    border: 0 !important;
    border-radius: 50px !important;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .03em;
    color: #fff !important;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
    box-shadow: 0 12px 26px rgba(249, 88, 60, .38) !important;
    transition: transform .25s var(--ease), box-shadow .25s !important;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(249, 88, 60, .46) !important;
}

.login-btn[disabled] {
    opacity: .55;
    transform: none;
    box-shadow: none !important;
    cursor: not-allowed;
}

.login-box-body>a {
    display: block;
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--brand);
    transition: color .2s;
}

.login-box-body>a:hover {
    color: var(--accent);
    text-decoration: none;
}

.sl-back {
    text-align: center;
    margin-top: 22px;
    font-size: 13.5px;
}

.sl-back a {
    color: var(--muted);
    transition: color .2s;
}

.sl-back a:hover {
    color: var(--brand);
    text-decoration: none;
}

.sl-back i {
    margin-right: 6px;
}

/* messages (wrong password, lock countdown ...) */
.sl-box .alert {
    border: 0;
    border-radius: 14px;
    padding: 14px 40px 14px 18px;
    margin-bottom: 18px;
    font-size: 14px;
    box-shadow: 0 10px 24px rgba(11, 31, 58, .10);
}

.sl-box .alert .close {
    top: 2px;
    right: 6px;
}

@media (max-width:900px) {
    .sl-side {
        display: none;
    }

    .sl-main {
        flex-basis: 100%;
        padding: 28px 16px;
        background: linear-gradient(180deg, #0f2f57 0, #174a85 230px, #f4f7fb 230px);
        align-items: flex-start;
        padding-top: 40px;
    }

    .sl-logo-sm {
        display: inline-block;
    }

    .sl-head h1 {
        color: #fff;
    }

    .sl-chip {
        background: rgba(255, 255, 255, .16);
        color: #fff;
    }

    .login-box-body {
        padding: 26px 22px 22px !important;
        border-radius: 20px;
    }
}

@media (prefers-reduced-motion:reduce) {

    .sl-side-in,
    .login-box.sl-box {
        animation: none;
    }
}

/* ===== single centered card layout (overrides the split layout above) ===== */
.sl-side {
    display: none !important;
}

.sl-main {
    flex: 1 1 100%;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background:
        radial-gradient(520px 340px at 12% 10%, rgba(58, 124, 202, .16), transparent 70%),
        radial-gradient(480px 340px at 90% 92%, rgba(249, 88, 60, .12), transparent 70%),
        #f4f7fb !important;
}

.sl-logo-sm {
    display: inline-block !important;
    width: 92px;
}

.sl-head h1 {
    color: var(--ink) !important;
}

.sl-chip {
    background: rgba(45, 95, 156, .10) !important;
    color: var(--brand) !important;
}

.login-box-body {
    padding: 32px 34px 24px !important;
    border-radius: 22px;
}

@media (max-width:900px) {
    .sl-main {
        padding: 24px 14px;
        align-items: center;
    }
}

/* ===== message (inside the card, above the fields) ===== */
.login-box-body .alert {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 20px !important;
    padding: 13px 38px 13px 14px !important;
    border: 0;
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.5;
    text-align: left;
    box-shadow: none;
    animation: slShake .5s .1s ease both;
}

.login-box-body .alert::before {
    content: "\f06a";
    font-family: FontAwesome;
    font-size: 17px;
    line-height: 1.3;
    flex: 0 0 auto;
}

.login-box-body .alert-success::before {
    content: "\f058";
}

.login-box-body .alert-info::before {
    content: "\f05a";
}

.login-box-body .alert-danger {
    background: #fdecea !important;
    color: #b42318 !important;
    border: 1px solid #f6c9c4;
}

.login-box-body .alert-success {
    background: #e8f7ee !important;
    color: #1a7a43 !important;
    border: 1px solid #bfe6cf;
}

.login-box-body .alert-warning {
    background: #fff6e5 !important;
    color: #9a5b00 !important;
    border: 1px solid #f4dcaa;
}

.login-box-body .alert .close {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 20px;
    opacity: .5;
    color: inherit;
    text-shadow: none;
}

.login-box-body .alert .close:hover {
    opacity: 1;
}

@keyframes slShake {
    0% {
        opacity: 0;
        transform: translateY(-8px);
    }

    30% {
        opacity: 1;
        transform: translateX(-5px);
    }

    55% {
        transform: translateX(4px);
    }

    80% {
        transform: translateX(-2px);
    }

    100% {
        transform: none;
    }
}

/* forgot-password page extras */
.login-box-body .alert h4 {
    display: none;
}

/* the old "Message:" heading; the icon already says it */
.login-box-body input[type=number] {
    -moz-appearance: textfield;
}

.login-box-body input[type=number]::-webkit-outer-spin-button,
.login-box-body input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.login-box-body>a i {
    margin-right: 6px;
}

/* ===== subtle motion ===== */
.sl-main {
    position: relative;
    overflow: hidden;
}

.sl-main::before,
.sl-main::after {
    /* slow floating colour blobs behind the card */
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.sl-main::before {
    width: 380px;
    height: 380px;
    left: 8%;
    top: 10%;
    background: rgba(58, 124, 202, .26);
    animation: slFloatA 14s ease-in-out infinite alternate;
}

.sl-main::after {
    width: 340px;
    height: 340px;
    right: 8%;
    bottom: 6%;
    background: rgba(249, 88, 60, .20);
    animation: slFloatB 16s ease-in-out infinite alternate;
}

@keyframes slFloatA {
    to {
        transform: translate(90px, 70px) scale(1.15);
    }
}

@keyframes slFloatB {
    to {
        transform: translate(-80px, -60px) scale(1.2);
    }
}

.login-box.sl-box {
    position: relative;
    z-index: 1;
}

/* logo floats gently, card items slide up one after another */
.sl-logo-sm {
    animation: slBob 4.5s ease-in-out infinite;
}

@keyframes slBob {
    50% {
        transform: translateY(-7px);
    }
}

.sl-head h1,
.sl-chip,
.login-box-body,
.sl-back {
    animation: slIn .7s var(--ease) both;
}

.sl-head h1 {
    animation-delay: .12s;
}

.sl-chip {
    animation-delay: .2s;
}

.login-box-body {
    animation-delay: .28s;
}

.login-box-body .form-group.has-feedback:nth-of-type(1) {
    animation: slIn .6s .42s var(--ease) both;
}

.login-box-body .form-group.has-feedback:nth-of-type(2) {
    animation: slIn .6s .52s var(--ease) both;
}

.login-box-body .row {
    animation: slIn .6s .62s var(--ease) both;
}

.sl-back {
    animation-delay: .75s;
}

/* inputs: icon pops + field lifts a little when focused */
.has-feedback .form-control:focus {
    transform: translateY(-2px);
}

.has-feedback .form-control:focus~.form-control-feedback {
    animation: slPop .35s var(--ease);
}

@keyframes slPop {
    40% {
        transform: scale(1.35) rotate(-8deg);
    }
}

/* button: moving shine */
.login-btn {
    position: relative;
    overflow: hidden;
}

.login-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .45), transparent);
    transform: skewX(-20deg);
    animation: slShine 3.6s 1.2s ease-in-out infinite;
}

@keyframes slShine {
    0% {
        left: -80%;
    }

    40%,
    100% {
        left: 140%;
    }
}

.login-btn:active {
    transform: scale(.97);
}

@media (prefers-reduced-motion:reduce) {

    .sl-main::before,
    .sl-main::after,
    .sl-logo-sm,
    .login-btn::after,
    .sl-head h1,
    .sl-chip,
    .login-box-body,
    .login-box-body .form-group,
    .login-box-body .row,
    .sl-back {
        animation: none !important;
    }
}