:root {
    --color-orange: #f47c20;
    --color-orange-dark: #d9630c;
    --color-brown: #5a2e1f;
    --color-brown-dark: #351c13;
    --color-background: #ffffff;
    --color-input: #ffffff;
    --color-border: #dedede;
    --color-text: #3b2418;
    --color-text-light: #777777;
    --color-text-muted: #999999;
    --color-security: #fff8f1;
    --radius-input: 11px;
    --radius-button: 11px;
}

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

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f1ee;
    color: var(--color-text);
}

.login-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    background: var(--color-background);
}

.brand-panel {
    position: relative;
    width: 44%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    overflow: hidden;
    background-image:
        url("/img/backgrounds/login-background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
}

.brand-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(35, 18, 10, 0.76),
            rgba(55, 29, 16, 0.52)
        );
    z-index: 1;
}

.brand-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 520px;
    margin-top: -25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.brand-logo {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.brand-name {
    font-size: clamp(42px, 4vw, 62px);
    line-height: 1;
    letter-spacing: -2px;
    font-weight: 800;
    color: #ffffff;
}

.brand-name span {
    color: var(--color-orange);
}

.brand-subtitle {
    margin-top: 14px;
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: 2.5px;
    font-weight: 600;
    color: #ffffff;
}

.brand-divider {
    width: 92px;
    height: 3px;
    margin: 25px auto;
    background: var(--color-orange);
    border-radius: 10px;
}

.brand-description {
    max-width: 430px;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
}

.brand-security {
    position: absolute;
    left: 50%;
    bottom: 35px;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 18px;
    border-radius: 13px;
    background: rgba(28, 15, 9, 0.82);
    border: 1px solid rgba(244, 124, 32, 0.25);
    backdrop-filter: blur(8px);
    white-space: nowrap;
}

.brand-security svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    color: var(--color-orange);
}

.brand-security strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    color: #ffffff;
}

.brand-security span {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.login-panel {
    position: relative;
    width: 56%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 45px 75px 65px;
    background: #ffffff;
}

.login-content {
    width: 100%;
    max-width: 570px;
    margin: 0 auto;
}

.login-icon {
    width: 78px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 1.5px solid var(--color-orange);
    border-radius: 50%;
    color: var(--color-orange);
}

.login-icon svg {
    width: 38px;
    height: 38px;
}

.login-header {
    text-align: center;
    margin-bottom: 34px;
}

.login-header h2 {
    font-size: 36px;
    line-height: 1.1;
    margin-bottom: 10px;
    color: var(--color-text);
    letter-spacing: -1px;
}

.login-header p {
    font-size: 15px;
    line-height: 1.5;
    color: var(--color-text-light);
}

.login-form {
    width: 100%;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.field-icon {
    position: absolute;
    left: 17px;
    top: 50%;
    width: 21px;
    height: 21px;
    transform: translateY(-50%);
    color: #806f65;
    pointer-events: none;
    transition: color 0.2s ease;
}

.input-wrapper:focus-within .field-icon {
    color: var(--color-orange);
}

.input-wrapper input {
    width: 100%;
    height: 56px;
    padding: 0 48px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-input);
    outline: none;
    background: var(--color-input);
    color: var(--color-text);
    font-size: 15px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

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

.input-wrapper input:focus {
    border-color: var(--color-orange);
    box-shadow:
        0 0 0 3px rgba(244, 124, 32, 0.12);
}

.password-toggle {
    position: absolute;
    right: 13px;
    top: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #806f65;
    cursor: pointer;
    border-radius: 7px;
    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.password-toggle:hover {
    color: var(--color-orange);
    background: #fff5eb;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0 24px;
    font-size: 14px;
}

.remember-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    color: #555555;
}

.remember-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #c9c1bc;
    border-radius: 4px;
    background: #ffffff;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.remember-option input:checked + .custom-checkbox {
    background: var(--color-orange);
    border-color: var(--color-orange);
}

.remember-option input:checked + .custom-checkbox::after {
    content: "✓";
    font-size: 13px;
    font-weight: bold;
    color: #ffffff;
}

.forgot-password {
    color: var(--color-orange-dark);
    font-weight: 600;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-button {
    width: 100%;
    height: 57px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border: none;
    border-radius: var(--radius-button);
    background: var(--color-orange);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow:
        0 8px 20px rgba(244, 124, 32, 0.18);
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.login-button svg {
    width: 21px;
    height: 21px;
}

.login-button:hover {
    background: var(--color-orange-dark);
    transform: translateY(-1px);
    box-shadow:
        0 10px 24px rgba(244, 124, 32, 0.25);
}

.login-button:active {
    transform: translateY(0);
}

.secure-access {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 27px;
    padding: 17px 18px;
    border: 1px solid #f0dfd0;
    border-radius: 12px;
    background: var(--color-security);
}

.secure-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 11px;
    background: #fff0df;
    color: var(--color-orange);
}

.secure-icon svg {
    width: 23px;
    height: 23px;
}

.secure-text strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    color: var(--color-text);
}

.secure-text span {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    color: #777777;
}

.login-footer {
    width: 100%;
    position: absolute;
    left: 0;
    bottom: 18px;
    text-align: center;
    font-size: 12px;
    color: #999999;
}

.login-footer strong {
    color: var(--color-orange);
}

@media (max-width: 1100px) {
    .brand-panel {
        width: 42%;
        padding: 45px;
    }

    .login-panel {
        width: 58%;
        padding: 40px 55px 65px;
    }

    .brand-name {
        font-size: 48px;
    }

    .brand-subtitle {
        font-size: 15px;
        letter-spacing: 2px;
    }
}

@media (max-width: 850px) {
    .login-page {
        flex-direction: column;
        min-height: 100vh;
    }

    .brand-panel {
        width: 100%;
        min-height: 380px;
        padding: 45px;
    }

    .brand-content {
        margin-top: 0;
    }

    .brand-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    }

    .brand-name {
        font-size: 46px;
    }

    .brand-security {
        left: 50%;
        right: auto;
        bottom: 25px;
        transform: translateX(-50%);
    }

    .login-panel {
        width: 100%;
        min-height: auto;
        padding: 55px 40px 80px;
    }

    .login-content {
        max-width: 600px;
    }

    .login-footer {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 520px) {
    .brand-panel {
        min-height: 350px;
        padding: 35px 28px;
    }

    .brand-logo {
        width: 82px;
        height: 82px;
        padding: 0;
        margin-bottom: 17px;
        border-radius: 0;
    }

    .brand-name {
        font-size: 39px;
        letter-spacing: -1.5px;
    }

    .brand-subtitle {
        font-size: 13px;
        letter-spacing: 1.8px;
    }

    .brand-divider {
        width: 70px;
        margin: 20px auto;
    }

    .brand-description {
        font-size: 14px;
        line-height: 1.5;
    }

    .brand-security {
        left: 50%;
        right: auto;
        width: calc(100% - 56px);
        max-width: 330px;
        bottom: 20px;
        transform: translateX(-50%);
        padding: 12px 14px;
    }

    .brand-security svg {
        width: 23px;
        height: 23px;
    }

    .brand-security strong {
        font-size: 13px;
    }

    .brand-security span {
        font-size: 11px;
    }

    .login-panel {
        padding: 42px 24px 65px;
    }

    .login-icon {
        width: 68px;
        height: 68px;
        margin-bottom: 18px;
    }

    .login-icon svg {
        width: 33px;
        height: 33px;
    }

    .login-header {
        margin-bottom: 30px;
    }

    .login-header h2 {
        font-size: 31px;
    }

    .login-header p {
        font-size: 14px;
    }

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

    .input-wrapper input {
        height: 54px;
        font-size: 14px;
    }

    .login-options {
        align-items: flex-start;
        gap: 15px;
        flex-direction: column;
        margin-bottom: 23px;
    }

    .login-button {
        height: 55px;
    }

    .secure-access {
        margin-top: 24px;
        padding: 15px;
    }

    .secure-icon {
        width: 38px;
        height: 38px;
    }

    .secure-text span {
        font-size: 12px;
    }
}

@media (max-height: 700px) and (min-width: 851px) {
    .brand-panel {
        padding-top: 35px;
        padding-bottom: 35px;
    }

    .brand-content {
        margin-top: 0;
    }

    .brand-logo {
        width: 90px;
        height: 90px;
        margin-bottom: 16px;
    }

    .brand-name {
        font-size: 45px;
    }

    .brand-subtitle {
        margin-top: 10px;
        font-size: 15px;
    }

    .brand-divider {
        margin: 17px auto;
    }

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

    .brand-security {
        left: 50%;
        bottom: 18px;
        transform: translateX(-50%);
        padding: 11px 15px;
    }

    .login-panel {
        padding-top: 25px;
        padding-bottom: 50px;
    }

    .login-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 14px;
    }

    .login-icon svg {
        width: 31px;
        height: 31px;
    }

    .login-header {
        margin-bottom: 23px;
    }

    .login-header h2 {
        font-size: 31px;
    }

    .login-header p {
        font-size: 13px;
    }

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

    .input-wrapper input {
        height: 50px;
    }

    .login-options {
        margin-bottom: 18px;
    }

    .login-button {
        height: 51px;
    }

    .secure-access {
        margin-top: 19px;
        padding: 13px 16px;
    }

    .secure-icon {
        width: 36px;
        height: 36px;
    }

    .secure-text strong {
        font-size: 14px;
    }

    .secure-text span {
        font-size: 12px;
    }
}
.login-message {
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff0ed;
    color: #9c2e21;
    font-size: 13px;
}

.login-message.success {
    background: #edf7f0;
    color: #267347;
}

.recovery-page {
    width: 100%;
    padding: 32px 20px;
}

.recovery-page .login-content {
    max-width: 440px;
}

.recovery-logo {
    display: block;
    width: 64px;
    margin: 0 auto 16px;
}

.recovery-page h1 {
    font-size: clamp(24px, 4vw, 32px);
    line-height: 1.15;
}

.recovery-page .input-wrapper input {
    padding-inline: 16px;
}

.recovery-page .login-message {
    margin-bottom: 16px;
}

.recovery-help {
    margin-top: 6px;
    font-size: 13px;
    color: var(--color-text-light);
}

.recovery-link {
    display: inline-block;
    margin: 14px 16px 0 0;
}

.login-button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.remember-option:has(input:disabled) {
    opacity: 0.55;
    cursor: default;
}
