:root {
    --brand: #E21183;
    --brand-dark: #9D0D5F;
    --ink: #172033;
    --muted: #697386;
    --line: #D9DEE8;
    --surface: #FFFFFF;
    --soft: #F5F7FB;
    --danger: #B42318;
    --info: #175CD3;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--soft);
}

button,
input {
    font: inherit;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(380px, 1.05fr) minmax(360px, 0.95fr);
}

.brand-panel {
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 56px;
    color: #FFFFFF;
    background-image: linear-gradient(90deg, rgba(23, 32, 51, 0.88), rgba(23, 32, 51, 0.38)), url("../../../dist/img/fundo-login.jpg");
    background-size: cover;
    background-position: center;
}

.brand-panel__content {
    width: min(560px, 100%);
}

.brand-panel__logo {
    width: 230px;
    max-width: 80%;
    height: auto;
    margin-bottom: 42px;
    filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.24));
}

.brand-panel h1 {
    margin: 0 0 16px;
    font-size: 42px;
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: 0;
}

.brand-panel p {
    max-width: 460px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 17px;
    line-height: 1.5;
}

.access-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 251, 0.98)),
        var(--soft);
}

.access-card {
    width: min(430px, 100%);
    padding: 34px;
    background: var(--surface);
    border: 1px solid rgba(217, 222, 232, 0.92);
    border-radius: 8px;
    box-shadow: 0 22px 60px rgba(23, 32, 51, 0.14);
}

.access-card__header {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 26px;
}

.access-card__header img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.access-card__header span {
    display: block;
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.access-card__header h2 {
    margin: 4px 0 0;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: 0;
}

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

.alert {
    position: relative;
    margin: 0 0 14px;
    padding: 12px 42px 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
    font-size: 14px;
    line-height: 1.45;
}

.alert h4,
.alert h5 {
    margin: 0 0 4px;
    font-size: 15px;
    line-height: 1.35;
}

.alert-info {
    color: var(--info);
    background: #EFF6FF;
    border-color: #B2DDFF;
}

.alert-danger {
    color: var(--danger);
    background: #FEF3F2;
    border-color: #FECDCA;
}

.close {
    position: absolute;
    top: 7px;
    right: 10px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.field {
    display: block;
    margin-bottom: 16px;
}

.field > span:first-child {
    display: block;
    margin-bottom: 7px;
    color: #344054;
    font-size: 14px;
    font-weight: 700;
}

.field__control {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #FFFFFF;
    color: #667085;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field__control:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(226, 17, 131, 0.12);
}

.field__control input {
    width: 100%;
    min-width: 0;
    height: 46px;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
}

.field__control input::placeholder {
    color: #98A2B3;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #667085;
    cursor: pointer;
}

.icon-button:hover,
.icon-button:focus {
    background: #F2F4F7;
    color: var(--ink);
    outline: 0;
}

.primary-action,
.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
}

.primary-action {
    margin-top: 4px;
    color: #FFFFFF;
    background: var(--brand);
}

.primary-action:hover,
.primary-action:focus {
    background: var(--brand-dark);
    outline: 0;
}

.secondary-action {
    color: #344054;
    background: #FFFFFF;
    border-color: var(--line);
}

.secondary-action:hover,
.secondary-action:focus {
    background: #F9FAFB;
    outline: 0;
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 14px;
}

.loading img {
    width: 26px;
    height: 26px;
}

.install-area {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.install-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}

.install-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 82px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #FFFFFF;
}

.install-links img {
    max-width: 100%;
    height: auto;
}

.install-links button {
    grid-column: 1 / -1;
    min-height: 38px;
    border: 0;
    border-radius: 8px;
    color: var(--muted);
    background: #F2F4F7;
    cursor: pointer;
}

.hidden,
[hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .brand-panel {
        min-height: 260px;
        padding: 34px 24px;
    }

    .brand-panel__logo {
        width: 180px;
        margin-bottom: 24px;
    }

    .brand-panel h1 {
        font-size: 31px;
    }

    .access-panel {
        padding: 24px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .brand-panel {
        min-height: 220px;
    }

    .brand-panel h1 {
        font-size: 27px;
    }

    .brand-panel p {
        font-size: 15px;
    }

    .access-card {
        padding: 24px 18px;
    }

    .access-card__header h2 {
        font-size: 21px;
    }
}
