@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

:root {
    --ink: #111827;
    --muted: #64748b;
    --line: #dbe3ee;
    --soft: #f5f7fb;
    --white: #ffffff;
    --navy: #172033;
    --teal: #087f7b;
    --teal-dark: #075f5d;
    --cyan: #22b8cf;
    --amber: #f4b63f;
    --red: #e05252;
}

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

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    font-family: 'Cairo', Tahoma, Arial, sans-serif !important;
    background:
        linear-gradient(135deg, rgba(8, 127, 123, 0.14), transparent 34%),
        linear-gradient(225deg, rgba(244, 182, 63, 0.16), transparent 28%),
        #f7fbfd !important;
}

.wrapper,
.content-wrapper,
.right-side,
.main-footer,
.content,
.container,
.container-fluid,
.container-fluid > .row,
.container-fluid > .row > .right-col {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.login-shell {
    width: min(1180px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
    gap: 28px;
    align-items: center;
    padding: 28px 0;
}

.login-hero {
    min-height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(28px, 5vw, 56px);
    border-radius: 8px;
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(23, 32, 51, 0.94), rgba(8, 127, 123, 0.86)),
        url('../../img/home-bg.jpg') center/cover;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

.brand,
.hero-grid,
.operations-head,
.ops-metrics,
.trust-row,
.check-label {
    display: flex;
    align-items: center;
}

.brand {
    gap: 12px;
}

.brand-mark {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    color: var(--white);
    font-size: 28px;
    font-weight: 900;
    box-shadow: 0 14px 35px rgba(8, 127, 123, 0.32);
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 20px;
    line-height: 1.1;
}

.brand small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

.hero-copy {
    max-width: 720px;
    padding: 42px 0 24px;
}

.kicker,
.eyebrow {
    margin: 0 0 12px;
    color: var(--amber);
    font-size: 14px;
    font-weight: 900;
}

.login-hero h1 {
    margin: 0 0 18px;
    color: var(--white);
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: 0;
}

.hero-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.9;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.hero-grid div,
.operations-card {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
}

.hero-grid div {
    min-height: 96px;
    padding: 16px;
}

.hero-grid b,
.hero-grid span {
    display: block;
}

.hero-grid b {
    color: var(--white);
    font-size: 22px;
    font-weight: 900;
}

.hero-grid span {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 13px;
}

.operations-card {
    margin-top: 22px;
    padding: 18px;
    backdrop-filter: blur(12px);
}

.operations-head {
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.operations-head span {
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(47, 159, 112, 0.22);
    color: #d8ffeb;
    font-size: 12px;
    font-weight: 800;
}

.ops-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.ops-metrics div {
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.11);
}

.ops-metrics small,
.ops-metrics strong {
    display: block;
}

.ops-metrics small {
    color: rgba(255, 255, 255, 0.66);
    font-size: 12px;
}

.ops-metrics strong {
    margin-top: 4px;
    color: var(--white);
    font-size: 20px;
}

.ops-bars {
    height: 92px;
    display: flex;
    align-items: end;
    gap: 8px;
    margin-top: 14px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.ops-bars span {
    flex: 1;
    min-width: 12px;
    border-radius: 8px 8px 2px 2px;
    background: linear-gradient(180deg, var(--amber), var(--cyan));
}

.login-panel {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.panel-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 8px;
    background: #e9fbf8;
    color: var(--teal);
    font-size: 25px;
}

.eyebrow {
    color: var(--teal);
    text-transform: uppercase;
}

.login-panel h2 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 31px;
    line-height: 1.25;
    font-weight: 900;
}

.subtitle {
    margin: 0 0 24px;
    color: var(--muted);
    line-height: 1.8;
    font-size: 15px;
}

.demo-area {
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.demo-area > strong {
    display: block;
    margin-bottom: 10px;
    color: var(--ink);
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.demo-btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px;
    border: 1px solid rgba(8, 127, 123, 0.22);
    border-radius: 8px;
    background: var(--white);
    color: var(--teal-dark) !important;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}

.field-group {
    margin-bottom: 16px;
}

.field-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.form-control {
    width: 100%;
    height: 54px;
    padding: 0 44px 0 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
    color: var(--ink);
    outline: 0;
    font-size: 15px;
    font-weight: 700;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-control::placeholder {
    color: #94a3b8;
    font-weight: 600;
}

.form-control:focus {
    background: var(--white);
    border-color: rgba(8, 127, 123, 0.6);
    box-shadow: 0 0 0 4px rgba(8, 127, 123, 0.12);
}

.form-control.is-error {
    border-color: #f5a3a3;
}

.pwd-toggle {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
}

.field-error {
    margin-top: 6px;
    color: #9f2626;
    font-size: 13px;
}

.remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 0 20px;
}

.remember-row a {
    color: var(--teal-dark);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.check-label {
    gap: 8px;
    color: var(--muted);
    cursor: pointer;
    font-size: 13px;
}

.check-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--teal);
}

.recaptcha-wrap {
    margin-bottom: 16px;
}

.btn-submit {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 8px;
    background: var(--teal);
    color: var(--white);
    cursor: pointer;
    font-size: 17px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-submit:hover {
    transform: translateY(-1px);
    background: var(--teal-dark);
    box-shadow: 0 16px 32px rgba(8, 127, 123, 0.22);
}

.btn-register {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 2px solid var(--teal);
    border-radius: 8px;
    background: transparent;
    color: var(--teal);
    cursor: pointer;
    font-size: 17px;
    font-weight: 900;
    text-decoration: none;
    margin-top: 12px;
    transition: all 0.2s ease;
}

.btn-register:hover {
    background: rgba(8, 127, 123, 0.08);
    transform: translateY(-1px);
}

.trust-row {
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.trust-row i {
    color: var(--teal);
}

@media (max-width: 980px) {
    .login-shell {
        width: min(760px, calc(100% - 24px));
        grid-template-columns: 1fr;
    }

    .login-hero {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .login-shell {
        width: calc(100% - 20px);
        padding: 10px 0;
    }

    .login-hero,
    .login-panel {
        padding: 22px;
    }

    .hero-copy {
        padding: 34px 0;
    }

    .hero-grid,
    .ops-metrics,
    .demo-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy p,
    .subtitle {
        font-size: 15px;
    }

    .remember-row {
        align-items: flex-start;
        flex-direction: column;
    }
}
