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

:root {
    --primary: #087f73;
    --primary-dark: #065c54;
    --text-dark: #172b35;
    --text-muted: #75818b;
    --border: #e5e9ed;
}

html,
body {
    width: 100%;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f5f8f9;
    overflow-x: hidden;
}

.login-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
}

/* BRAND SECTION */

.login-brand-side {
    flex: 1.2;
    position: relative;
    min-height: 100vh;

    background:
        linear-gradient(
            135deg,
            rgba(5, 43, 40, 0.88),
            rgba(5, 43, 40, 0.55),
            rgba(2, 24, 25, 0.90)
        ),
        url("../images/login-bg.e4247a7aaa5d.jpg") center center / cover no-repeat;

    color: white;
    overflow: hidden;
}

.brand-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.08),
        rgba(0, 0, 0, 0.20)
    );
}

.brand-content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 50px 55px 30px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 26px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.brand-logo h1,
.mobile-brand h2 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2px;
}

.brand-logo span,
.mobile-brand span {
    display: block;
    font-size: 9px;
    letter-spacing: 1.5px;
    margin-top: 4px;
    opacity: 0.8;
}

.brand-message {
    max-width: 560px;
    margin-top: 35px;
}

.welcome-label,
.form-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #55d7c2;
    margin-bottom: 17px;
}

.brand-message h2 {
    font-size: clamp(35px, 4vw, 56px);
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 20px;
}

.brand-message h2 span {
    color: #55d7c2;
}

.brand-message p {
    max-width: 470px;
    font-size: 14px;
    line-height: 1.9;
    color: rgba(255,255,255,0.85);
}

.quote-container {
    max-width: 480px;
    margin-top: 30px;
}

.quote-mark {
    font-family: Georgia, serif;
    font-size: 60px;
    height: 45px;
    color: #55d7c2;
}

.quote-container p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
    min-height: 50px;
}

.quote-container span {
    display: block;
    margin-top: 10px;
    color: #55d7c2;
    font-size: 12px;
    font-weight: 600;
}

.brand-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 18px;
}

/* FORM SECTION */

.login-form-side {
    flex: 0.8;
    min-width: 400px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 40px;
    background: #f8fafb;
}

.glass-panel {
    width: 100%;
    max-width: 440px;

    background: white;
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 18px;

    padding: 42px 36px;

    box-shadow: 0 15px 50px rgba(20,45,55,0.07);
}

.form-heading {
    margin-bottom: 30px;
}

.form-heading h2 {
    font-size: 29px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.form-heading p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

.form-heading .form-label {
    color: var(--primary);
    margin-bottom: 12px;
}

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

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #344650;
    margin-bottom: 9px;
}

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

.input-wrapper input {
    width: 100%;
    height: 53px;

    border: 1px solid var(--border);
    border-radius: 9px;

    padding: 0 70px 0 44px;

    font-size: 13px;
    color: var(--text-dark);
    background: #fbfcfd;

    outline: none;
    transition: 0.25s ease;
}

.input-wrapper input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(8,127,115,0.08);
}

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

.input-icon {
    position: absolute;
    left: 14px;
    font-size: 15px;
    z-index: 1;
}

.password-toggle {
    position: absolute;
    right: 13px;

    border: none;
    background: transparent;

    color: var(--primary);
    font-size: 11px;
    font-weight: 700;

    cursor: pointer;
}

.field-error {
    display: block;
    color: #dc3545;
    margin-top: 7px;
    font-size: 11px;
}

.form-options {
    display: flex;
    justify-content: flex-end;
    margin: -5px 0 23px;
}

.form-options a {
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.form-options a:hover {
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    height: 53px;

    border: none;
    border-radius: 9px;

    background: var(--primary);
    color: white;

    font-size: 14px;
    font-weight: 700;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    cursor: pointer;
    transition: 0.25s ease;

    box-shadow: 0 8px 18px rgba(8,127,115,0.2);
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-arrow {
    font-size: 20px;
}

.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 25px;
    color: var(--text-muted);
}

.security-note p {
    font-size: 10px;
}

.form-footer {
    margin-top: 23px;
    text-align: center;
    color: #87939a;
    font-size: 10px;
}

.mobile-brand {
    display: none;
}

/* ALERTS */

.alert {
    padding: 13px 15px;
    border-radius: 9px;
    margin-bottom: 18px;
    font-size: 12px;
    line-height: 1.6;
}

.alert-error,
.alert-danger {
    background: #fff0f0;
    border: 1px solid #ffd3d3;
    color: #b42318;
}

.alert-success {
    background: #eaf8f0;
    border: 1px solid #c5ebd4;
    color: #147d42;
}

.alert-warning {
    background: #fff8e8;
    border: 1px solid #f5e3b5;
    color: #956300;
}

.alert-info {
    background: #eaf4ff;
    border: 1px solid #cce2ff;
    color: #175a9b;
}

/* TABLET */

@media (max-width: 1000px) and (min-width: 701px) {
    .brand-content {
        padding: 40px 30px 25px;
    }

    .login-form-side {
        min-width: 360px;
        padding: 25px;
    }

    .glass-panel {
        padding: 32px 25px;
    }

    .brand-message h2 {
        font-size: 38px;
    }
}

/* MOBILE */

@media (max-width: 700px) {

    html,
    body {
        min-height: 100%;
    }

    .login-container {
        display: flex;
        flex-direction: column;
        position: relative;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .login-brand-side {
        position: fixed;
        inset: 0;

        width: 100%;
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;

        flex: none;
        z-index: 0;

        background-position: center center;
        background-size: cover;
    }

    .brand-overlay {
        background: linear-gradient(
            180deg,
            rgba(3,32,31,0.50),
            rgba(3,32,31,0.72),
            rgba(3,32,31,0.86)
        );
    }

    .brand-content {
        display: none;
    }

    .login-form-side {
        position: relative;
        z-index: 2;

        width: 100%;
        min-width: 0;
        min-height: 100vh;
        min-height: 100dvh;

        padding: 28px 18px;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        background: transparent;
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;

        color: white;
        margin-bottom: 24px;
    }

    .mobile-brand h2 {
        font-size: 20px;
    }

    .mobile-brand span {
        font-size: 8px;
    }

    .glass-panel {
        width: 100%;
        max-width: 430px;

        margin: 0 auto;
        padding: 32px 24px;

        border-radius: 17px;

        background: rgba(255,255,255,0.97);
        border: 1px solid rgba(255,255,255,0.65);

        box-shadow: 0 20px 50px rgba(0,0,0,0.28);
    }

    .form-heading h2 {
        font-size: 26px;
    }

    .form-footer {
        color: rgba(255,255,255,0.85);
        margin-top: 20px;
    }
}

/* SMALL PHONES */

@media (max-width: 380px) {

    .login-form-side {
        padding: 20px 12px;
    }

    .mobile-brand {
        margin-bottom: 18px;
    }

    .glass-panel {
        padding: 26px 19px;
    }

    .form-heading h2 {
        font-size: 23px;
    }

    .input-wrapper input,
    .btn-submit {
        height: 49px;
    }
}

/* SHORT MOBILE SCREENS */

@media (max-width: 700px) and (max-height: 650px) {

    .login-form-side {
        justify-content: flex-start;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .glass-panel {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .form-heading {
        margin-bottom: 18px;
    }

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