:root {
    --color-black: #000000;
    --color-white: #ffffff;
    --color-blue: #1f5eff;
    --color-blue-dark: #1849cc;
    --color-text: #111827;
    --color-text-soft: #5f6b7a;
    --color-line: #d9e1ec;
    --color-error-bg: #fff1f1;
    --color-error-text: #c53030;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: "Inter", sans-serif;
}

body {
    min-height: 100vh;
    background: var(--color-text);
    color: var(--color-text);
}

img {
    display: block;
    max-width: 100%;
}

button,
input {
    font: inherit;
}

.login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* LADO ESQUERDO */

.login-left {
    background: #04080d;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.left-content {
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.left-logo {
    width: 100%;
    max-width: 420px;
    height: auto;
    margin-bottom: 40px;
}

.left-kicker {
    display: block;
    margin-bottom: 16px;
    color: #7ea2ff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.left-texts h1 {
    margin: 0 0 16px;
    font-size: 33px;
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.left-texts p {
    margin: 0 auto;
    max-width: 520px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    line-height: 1.6;
}

/* LADO DIREITO */

.login-right {
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.right-content {
    width: 100%;
    max-width: 430px;
}

.right-logo {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 auto 36px;
}

.form-header {
    text-align: center;
    margin-bottom: 28px;
}

.form-header h2 {
    margin: 0 0 10px;
    font-size: 36px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-text);
}

.form-header p {
    margin: 0;
    color: var(--color-text-soft);
    font-size: 15px;
    line-height: 1.6;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
}

.form-group input {
    width: 100%;
    height: 52px;
    padding: 0 14px;
    border: 1px solid var(--color-line);
    border-radius: 0;
    background: var(--color-white);
    color: var(--color-text);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus {
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(31, 94, 255, 0.12);
}

.login-error {
    margin: 0;
    padding: 12px 14px;
    background: var(--color-error-bg);
    color: var(--color-error-text);
    border: 1px solid #ffd6d6;
    font-size: 14px;
    line-height: 1.5;
}

.login-button {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 0;
    background: var(--color-blue);
    color: var(--color-white);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.login-button:hover {
    background: var(--color-blue-dark);
}

.login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}


.password-field {
    position: relative;
}

.password-field input {
    padding-right: 52px;
}

.password-toggle {
    position: absolute;

    top: 0;
    right: 0;

    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    background: transparent;

    color: #5f6b7a;

    cursor: pointer;
}

.password-toggle:hover {
    color: var(--color-blue);
}

.password-toggle svg {
    width: 22px;
    height: 22px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

/* RESPONSIVO */

@media (max-width: 1080px) {
    .login-layout {
        grid-template-columns: 1fr;
    }

    .login-left,
    .login-right {
        padding: 32px 22px;
    }

    .left-logo {
        max-width: 320px;
        margin-bottom: 28px;
    }

    .left-texts h1 {
        font-size: 42px;
    }

    .left-texts p {
        font-size: 18px;
    }

    .right-logo {
        max-width: 230px;
        margin-bottom: 28px;
    }
}

@media (max-width: 640px) {
    .left-texts h1 {
        font-size: 34px;
    }

    .left-texts p {
        font-size: 16px;
    }

    .form-header h2 {
        font-size: 30px;
    }
}