/* ==============================
   LOGIN PAGE STYLES
   M-Smart Services
============================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background: url('../img/Latar_Belakang_Login.jpg') no-repeat center center fixed !important;
    background-size: cover !important;
    display: flex;
    align-items: stretch;
}

/* ---- Layout ---- */
.login-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    background: rgba(0, 0, 0, 0.1);
    /* Lighter overlay */
}

/* ---- LEFT PANEL ---- */
.login-left {
    flex: 1.1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 2.5rem;
    background: rgba(15, 118, 110, 0.45) !important;
    /* Reduced opacity from 0.7 */
    backdrop-filter: blur(2px);
    /* Reduced blur from 8px */
}

.left-overlay {
    display: none;
    /* Removed as we use background-color on login-left now */
}

.left-content {
    position: relative;
    z-index: 1;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    margin-top: 3rem;
}

.badge-label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    padding: .45rem 1rem;
    border-radius: 30px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .3px;
    backdrop-filter: blur(4px);
    width: fit-content;
}

.badge-label i {
    color: #14B8A6;
}

.school-title {
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    max-width: 480px;
}

.school-subtitle {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .95);
    letter-spacing: .3px;
    margin-top: -.8rem;
}

.school-meta {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: .88rem;
    color: rgba(255, 255, 255, .78);
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    padding: .7rem .9rem;
    width: fit-content;
}

.school-tagline {
    font-size: .95rem;
    color: rgba(255, 255, 255, .82);
    max-width: 540px;
    line-height: 1.6;
}

.service-preview {
    display: flex;
    flex-direction: column;
    gap: .9rem;
}

.service-preview-title {
    font-size: .9rem;
    font-weight: 700;
    color: #fff;
}

.service-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
    max-width: 680px;
}

.service-preview-card {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 16px;
    padding: .9rem 1rem;
    color: #fff;
    backdrop-filter: blur(4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}

.service-preview-card i {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    flex-shrink: 0;
    color: #A7F3D0;
}

.service-preview-card span {
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.45;
}

.stats-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: .5rem;
}

.info-strip {
    display: flex;
    gap: .7rem;
    flex-wrap: wrap;
}

.info-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    padding: .55rem .85rem;
    color: rgba(255, 255, 255, .92);
    font-size: .76rem;
    font-weight: 600;
}

.info-chip i {
    color: #A7F3D0;
}

.workflow-box {
    max-width: 680px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 20px;
    padding: 1.1rem 1.15rem;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .08);
}

.workflow-title {
    font-size: .92rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: .85rem;
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
}

.workflow-step {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    background: rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: .85rem;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #14B8A6;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(20, 184, 166, .3);
}

.workflow-step strong {
    display: block;
    font-size: .82rem;
    color: #fff;
    margin-bottom: .2rem;
}

.workflow-step p {
    font-size: .75rem;
    color: rgba(255, 255, 255, .74);
    line-height: 1.5;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.stat-label {
    font-size: .8rem;
    color: rgba(255, 255, 255, .7);
    margin-top: .2rem;
    font-weight: 400;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, .3);
}

/* Decorative circles */
.decorative-circles {
    position: absolute;
    bottom: -80px;
    right: -80px;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .12);
}

.c1 {
    width: 250px;
    height: 250px;
    top: -125px;
    right: -125px;
}

.c2 {
    width: 180px;
    height: 180px;
    top: -90px;
    right: -90px;
}

.c3 {
    width: 110px;
    height: 110px;
    top: -55px;
    right: -55px;
}

.left-footer {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, .5);
    font-size: .78rem;
}

/* ---- RIGHT PANEL ---- */
.login-right {
    flex: .9;
    background: rgba(255, 255, 255, 0.7);
    /* Lighter and more transparent white */
    backdrop-filter: blur(3px);
    /* Reduced blur from 10px */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    width: 100%;
    max-width: 400px;
}

.school-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.logo-circle {
    width: 72px;
    height: 72px;
    background: #F0FDF4;
    border: 2px solid #0D9488;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 8px 24px rgba(13, 148, 136, .18);
    overflow: hidden;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    background: #fff;
}

.welcome-title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: #0D9488;
    margin-bottom: .3rem;
}

.welcome-sub {
    text-align: center;
    font-size: .88rem;
    color: #78909c;
    margin-bottom: 2rem;
}

.login-badge {
    display: block;
    width: fit-content;
    margin: 0 auto .9rem;
    padding: .45rem .85rem;
    border-radius: 999px;
    background: #CCFBF1;
    color: #0D9488;
    font-size: .76rem;
    font-weight: 700;
    border: 1px solid rgba(13, 148, 136, .2);
}

.login-note {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    background: #F0FDF4;
    border: 1px solid #a7f3d0;
    color: #134e4a;
    border-radius: 12px;
    padding: .8rem .95rem;
    font-size: .8rem;
    margin-bottom: 1.2rem;
}

.login-note code {
    background: #CCFBF1;
    color: #0F766E;
    border-radius: 6px;
    padding: .1rem .35rem;
    font-size: .78rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

/* Alert */
.alert-error {
    background: #fdecea;
    border: 1px solid #f5c6cb;
    color: #c62828;
    border-radius: 10px;
    padding: .85rem 1rem;
    font-size: .85rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.2rem;
}

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.form-group label {
    font-size: .82rem;
    font-weight: 600;
    color: #37474f;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-link {
    font-size: .78rem;
    color: #0D9488;
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

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

.input-icon {
    position: absolute;
    left: .9rem;
    color: #90a4ae;
    font-size: .85rem;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: .75rem 2.8rem .75rem 2.4rem;
    border: 1.5px solid #e0e7ef;
    border-radius: 10px;
    font-size: .9rem;
    font-family: 'Inter', sans-serif;
    background: #f7f9fc;
    color: #263238;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}

.input-wrapper input:focus {
    border-color: #0D9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, .12);
    background: #fff;
}

.toggle-pass {
    position: absolute;
    right: .9rem;
    background: none;
    border: none;
    color: #90a4ae;
    cursor: pointer;
    padding: .25rem;
    font-size: .85rem;
    transition: color .2s;
}

.toggle-pass:hover {
    color: #0D9488;
}

.form-check {
    margin-top: -.2rem;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .83rem;
    color: #546e7a;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    accent-color: #0D9488;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    background: linear-gradient(135deg, #0F766E, #14B8A6);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: .9rem 1.5rem;
    font-size: .95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: opacity .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 16px rgba(13, 148, 136, .3);
    margin-top: .5rem;
}

.btn-login:hover {
    opacity: .92;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, .4);
}

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

.btn-login:disabled {
    opacity: .7;
    cursor: not-allowed;
}

.help-text {
    text-align: center;
    font-size: .82rem;
    color: #78909c;
    margin-top: 1.5rem;
}

.help-text a {
    color: #0D9488;
    font-weight: 600;
    text-decoration: none;
}

.help-text a:hover {
    text-decoration: underline;
}

.login-support {
    display: grid;
    gap: .85rem;
    margin-top: 1.3rem;
}

.support-card {
    background: #f8fbff;
    border: 1px solid #e2ecfb;
    border-radius: 16px;
    padding: 1rem 1rem;
}

.support-title {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: #0D9488;
    font-size: .86rem;
    font-weight: 700;
    margin-bottom: .75rem;
}

.support-list {
    margin-left: 1rem;
    color: #5e6f84;
    font-size: .8rem;
    line-height: 1.7;
}

.support-meta {
    display: grid;
    gap: .7rem;
}

.support-meta div {
    display: grid;
    gap: .15rem;
}

.support-meta strong {
    color: #334155;
    font-size: .78rem;
}

.support-meta span {
    color: #64748b;
    font-size: .8rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
    }

    .login-left {
        flex: none;
        min-height: 320px;
        padding: 1.8rem;
    }

    .left-content {
        margin-top: 0;
        gap: 1rem;
    }

    .school-title {
        font-size: 1.5rem;
    }

    .school-subtitle {
        margin-top: -.35rem;
    }

    .stats-row {
        gap: 1.2rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .workflow-steps {
        grid-template-columns: 1fr;
    }

    .service-preview-grid {
        grid-template-columns: 1fr;
    }

    .login-right {
        padding: 1.5rem;
    }

    .login-card {
        max-width: 100%;
    }
}