/* ============================================================
   login.css  — Bulk Messaging Application · Login Page
   Self-contained: does not depend on styles.css
   Uses same color language as the main panel.
   ============================================================ */

/* ─── Reset / Base ── */
*, *::before, *::after { -webkit-box-sizing: border-box; box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
}

a { color: #1ebfae; text-decoration: none; }
a:hover { opacity: .85; }


/* ─── Layout: two-column split ── */
.login-layout {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    min-height: 100vh;
}


/* ─── LEFT: Branding panel ── */
.login-brand {
    width: 420px;
    -ms-flex-negative: 0;
        flex-shrink: 0;
    background: #0f1f3d;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

/* Decorative circle blobs */
.login-brand::before,
.login-brand::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: .07;
    background: #1ebfae;
}
.login-brand::before { width: 360px; height: 360px; top: -80px; right: -80px; }
.login-brand::after  { width: 240px; height: 240px; bottom: -60px; left: -60px; }

.login-brand__inner {
    position: relative;
    z-index: 1;
    max-width: 320px;
    width: 100%;
}

.login-brand__logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: #1ebfae;
    color: #fff;
    font-size: 36px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    margin-bottom: 28px;
    box-shadow: 0 8px 24px rgba(30,191,174,.35);
}

.login-brand__title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    margin: 0 0 12px;
}

.login-brand__sub {
    font-size: 14px;
    color: #7a90aa;
    line-height: 1.6;
    margin: 0 0 32px;
}

.login-brand__features {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 12px;
}
.login-brand__features li {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: #c8d6e8;
}
.login-brand__features li .fa {
    color: #1ebfae;
    font-size: 15px;
    -ms-flex-negative: 0;
        flex-shrink: 0;
}

.login-brand__compat {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #4a5e7a;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    padding: 5px 14px;
    margin-bottom: 16px;
}

.login-brand__version {
    font-size: 11px;
    color: #2d3f5e;
    margin: 0;
    letter-spacing: .06em;
    text-transform: uppercase;
}


/* ─── RIGHT: Form panel ── */
.login-form-panel {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    background: #f0f2f6;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    padding: 48px 24px;
}

.login-form-wrap {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.05);
    padding: 40px 40px 32px;
    width: 100%;
    max-width: 420px;
}


/* ─── Form header ── */
.login-form-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-form-header__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(30,191,174,.1);
    color: #1ebfae;
    font-size: 26px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    margin: 0 auto 16px;
}

.login-form-header__title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px;
}

.login-form-header__sub {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
}


/* ─── Form fields ── */
.login-field {
    margin-bottom: 20px;
}

.login-field__label {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 7px;
}
.login-field__label .fa { color: #1ebfae; }

.login-field__input-wrap { position: relative; }

.login-field__input {
    width: 100%;
    padding: 11px 14px;
    background: #f8fafc;
    border: 1.5px solid #e4e8ee;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #1e293b;
    outline: none;
    -webkit-transition: border-color .2s, box-shadow .2s;
            transition: border-color .2s, box-shadow .2s;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
}
.login-field__input:focus {
    border-color: #1ebfae;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(30,191,174,.12);
}
.login-field__input::-webkit-input-placeholder { color: #94a3b8; }
.login-field__input::-moz-placeholder           { color: #94a3b8; }
.login-field__input:-ms-input-placeholder       { color: #94a3b8; }

/* Password field: input + eye button */
.login-field__input-wrap .login-field__input { padding-right: 44px; }

.login-field__eye {
    position: absolute;
    right: 12px;
    top: 50%;
    -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    font-size: 15px;
    padding: 4px;
    line-height: 1;
    -webkit-transition: color .2s;
            transition: color .2s;
}
.login-field__eye:hover { color: #1ebfae; }


/* ─── Remember me ── */
.login-remember { margin-bottom: 24px; }

.login-remember__label {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #64748b;
}

.login-remember__checkbox {
    width: 16px;
    height: 16px;
    accent-color: #1ebfae;
    cursor: pointer;
}


/* ─── Submit button ── */
.login-submit {
    width: 100%;
    padding: 13px;
    background: #1ebfae;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    gap: 8px;
    letter-spacing: .02em;
    -webkit-transition: background .2s, box-shadow .2s, -webkit-transform .15s;
            transition: background .2s, box-shadow .2s, transform .15s;
}
.login-submit:hover {
    background: #17a598;
    box-shadow: 0 4px 16px rgba(30,191,174,.35);
    -webkit-transform: translateY(-1px);
            transform: translateY(-1px);
}
.login-submit:active {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    box-shadow: none;
}
.login-submit:disabled {
    opacity: .7;
    cursor: not-allowed;
    -webkit-transform: none;
            transform: none;
}


/* ─── Response message ── */
.login-message {
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    text-align: center;
}
.login-message--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.login-message--success {
    background: #f0fdf9;
    border: 1px solid #6ee7b7;
    color: #065f46;
}


/* ─── Footer note ── */
.login-footer-note {
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    margin: 20px 0 0;
}
.login-footer-note .fa { margin-right: 4px; color: #cbd5e1; }


/* ─── Responsive ── */
@media (max-width: 768px) {
    .login-layout {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
    }

    .login-brand {
        width: 100%;
        padding: 32px 24px;
        -webkit-box-align: start;
            -ms-flex-align: start;
                align-items: flex-start;
    }

    /* On mobile, hide the feature list to keep the brand panel compact */
    .login-brand__features,
    .login-brand__sub { display: none; }

    .login-brand__inner {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        gap: 16px;
        max-width: 100%;
    }

    .login-brand__logo {
        width: 48px;
        height: 48px;
        font-size: 24px;
        border-radius: 12px;
        margin-bottom: 0;
        -ms-flex-negative: 0;
            flex-shrink: 0;
    }

    .login-brand__title { font-size: 20px; margin: 0; }
    .login-brand__compat,
    .login-brand__version { display: none; }

    .login-form-panel { padding: 24px 16px; background: #f0f2f6; }

    .login-form-wrap {
        padding: 28px 24px 24px;
        border-radius: 12px;
    }
}

@media (max-width: 400px) {
    .login-form-wrap { padding: 24px 16px; }
}