
:root {
    --navy: #142b46;
    --navy-light: #203f60;
    --red: #d62839;
    --red-dark: #b91f30;
    --blue: #087eae;
    --green: #159b82;
    --ink: #243b50;
    --muted: #788997;
    --line: #e7edf1;
    --light: #f5f8fb;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Tahoma, Arial, sans-serif;
    color: var(--ink);
    background: #f3f7fa;
    line-height: 1.7;
}

button,
input {
    font-family: inherit;
}

a {
    text-decoration: none;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    direction: rtl;
}

/* BRAND SECTION */

.brand-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(8,126,174,.25),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #142b46,
            #203f60 65%,
            #10283f
        );

    color: white;
    padding: 55px 65px;
    display: flex;
    align-items: center;
}

.brand-background-circle {
    position: absolute;
    width: 560px;
    height: 560px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    top: -230px;
    left: -220px;
    box-shadow:
        0 0 0 45px rgba(255,255,255,.025),
        0 0 0 95px rgba(255,255,255,.02);
}

.brand-content {
    width: 100%;
    max-width: 620px;
    margin: auto;
    position: relative;
    z-index: 1;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: white;
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 65px;
}

.brand-logo .brand-icon {
    width: 51px;
    height: 51px;
    background: var(--red);
    color: white;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 27px;
    box-shadow: 0 7px 20px rgba(214,40,57,.28);
}

.brand-name span,
.login-logo strong span {
    color: var(--red);
}

.brand-label {
    color: #8bd2e4;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 19px;
}

.brand-content h1 {
    color: white;
    font-size: clamp(32px, 3.4vw, 45px);
    line-height: 1.5;
    margin: 0 0 18px;
}

.brand-content h1 span {
    display: block;
    color: #f08089;
}

.brand-description {
    max-width: 560px;
    color: #cfdae4;
    font-size: 14px;
    line-height: 2.1;
    margin-bottom: 28px;
}

.brand-features {
    display: grid;
    gap: 13px;
    margin-bottom: 35px;
}

.brand-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e4edf3;
    font-size: 13px;
}

.brand-feature span {
    width: 23px;
    height: 23px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #8de1c6;
    background: rgba(21,155,130,.19);
    font-size: 12px;
    font-weight: bold;
}

/* DASHBOARD PREVIEW */

.brand-preview {
    max-width: 510px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0,0,0,.13);
}

.preview-top {
    min-height: 48px;
    padding: 0 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.preview-title {
    color: #d8e7ef;
    font-size: 10px;
    letter-spacing: 1px;
}

.preview-live {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #55c49a;
    border-radius: 50%;
    margin-left: 7px;
}

.preview-mark {
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.preview-content {
    padding: 20px;
}

.preview-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}

.preview-heading small {
    color: #91adbd;
    font-size: 9px;
    letter-spacing: 1px;
}

.preview-heading h3 {
    color: white;
    font-size: 17px;
    margin: 4px 0 0;
}

.preview-status {
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(21,155,130,.2);
    color: #8de1c6;
    font-size: 9px;
    font-weight: bold;
}

.preview-items {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
}

.preview-item {
    padding: 13px 10px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 9px;
}

.preview-item span {
    display: block;
    color: #c4d6e1;
    font-size: 10px;
    margin-bottom: 7px;
}

.preview-item strong {
    color: white;
    font-size: 13px;
}

.brand-footer {
    margin-top: 28px;
    color: #8fa9bb;
    font-size: 10px;
    letter-spacing: 1.2px;
}

/* LOGIN SECTION */

.login-section {
    min-width: 0;
    background:
        radial-gradient(
            circle at 80% 15%,
            rgba(8,126,174,.07),
            transparent 35%
        ),
        linear-gradient(145deg,#f8fafc,#edf3f7);

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 55px 35px;
}

.login-container {
    width: 100%;
    max-width: 450px;
    background: white;
    border: 1px solid #e6edf2;
    border-radius: 19px;
    padding: 43px 40px 30px;
    box-shadow: 0 24px 65px rgba(20,43,70,.09);
}

.login-heading {
    margin-bottom: 35px;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    font-size: 21px;
    color: var(--navy);
    font-weight: bold;
    margin-bottom: 32px;
}

.login-logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: white;
    background: var(--red);
    box-shadow: 0 5px 14px rgba(214,40,57,.2);
}

.login-eyebrow {
    display: block;
    color: var(--blue);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1.5px;
    margin-bottom: 13px;
}

.login-heading h2 {
    color: var(--navy);
    font-size: 29px;
    margin: 0 0 8px;
}

.login-heading p {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}

/* ERROR */

.login-error {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff0f1;
    color: #ae2635;
    border: 1px solid #f2ccd1;
    border-radius: 9px;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 12px;
}

.login-error > span {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: var(--red);
    color: white;
    border-radius: 50%;
    font-weight: bold;
}

/* FORM */

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    color: #345066;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 9px;
}

.input-wrapper {
    height: 54px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    border: 1px solid #dce5eb;
    border-radius: 9px;
    background: #fff;
    transition: .2s ease;
}

.input-wrapper:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(8,126,174,.09);
}

.input-icon {
    color: var(--blue);
    font-size: 18px;
}

.input-wrapper input {
    min-width: 0;
    flex: 1;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--navy);
    font-size: 13px;
}

.input-wrapper input::placeholder {
    color: #a0adb6;
}

.password-toggle {
    border: 0;
    background: transparent;
    color: #8799a4;
    cursor: pointer;
    font-size: 18px;
}

/* SECURITY INFO */

.security-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #738894;
    font-size: 11px;
    margin: 5px 0 23px;
}

.security-check {
    color: var(--green);
    font-weight: bold;
    font-size: 14px;
}

.secure-text {
    margin-right: auto;
    color: var(--green);
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* BUTTON */

.login-button {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(
        100deg,
        var(--red),
        var(--red-dark)
    );
    color: white;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 7px 18px rgba(214,40,57,.19);
    transition: .2s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 23px rgba(214,40,57,.25);
}

.button-arrow {
    font-size: 18px;
}

.login-divider {
    height: 1px;
    background: var(--line);
    margin: 29px 0 19px;
}

.login-help {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #82929c;
    font-size: 11px;
    text-align: center;
}

.help-icon {
    width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    color: var(--blue);
    border: 1px solid #b9dbe7;
    border-radius: 50%;
    font-size: 10px;
}

.login-copyright {
    text-align: center;
    color: #a0abb1;
    font-size: 9px;
    margin-top: 27px;
    letter-spacing: .3px;
}

/* RESPONSIVE */

@media(max-width: 1050px) {

    .brand-section {
        padding: 45px 35px;
    }

    .login-section {
        padding: 35px 25px;
    }

    .login-container {
        padding: 35px 28px 27px;
    }

    .brand-preview {
        max-width: 100%;
    }

}

@media(max-width: 800px) {

    .auth-page {
        grid-template-columns: 1fr;
    }

    .brand-section {
        padding: 45px 30px;
        min-height: auto;
    }

    .brand-logo {
        margin-bottom: 38px;
    }

    .brand-content h1 {
        font-size: 32px;
    }

    .brand-preview {
        max-width: 530px;
    }

    .login-section {
        padding: 45px 20px;
    }

    .login-container {
        max-width: 480px;
    }

}

@media(max-width: 480px) {

    .brand-section {
        padding: 35px 23px;
    }

    .brand-logo {
        margin-bottom: 30px;
        font-size: 21px;
    }

    .brand-content h1 {
        font-size: 28px;
    }

    .brand-description {
        font-size: 12px;
    }

    .brand-feature {
        font-size: 11px;
    }

    .preview-items {
        gap: 6px;
    }

    .preview-item {
        padding: 10px 7px;
    }

    .preview-item span {
        font-size: 9px;
    }

    .login-section {
        padding: 30px 15px;
    }

    .login-container {
        padding: 30px 22px 25px;
        border-radius: 15px;
    }

    .login-heading h2 {
        font-size: 25px;
    }

}
