* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    font-family: "Segoe UI", Inter, Arial, sans-serif;
    background: #f3f3f3;
    color: #1f2937;
}

body {
    min-height: 100vh;
}

.access-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

.brand-panel {
    position: relative;
    flex: 0 0 50%;
    background: linear-gradient(180deg, #1e294a 0%, #1c2544 100%);
    color: #ffffff;
    overflow: hidden;
}

.brand-panel::before,
.brand-panel::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(160, 170, 211, 0.22);
    border-radius: 50%;
    pointer-events: none;
}

.brand-panel::before {
    width: 430px;
    height: 430px;
    left: 30%;
    top: 40%;
    transform: translateY(-50%);
}

.brand-panel::after {
    width: 560px;
    height: 560px;
    left: 45%;
    top: 58%;
    transform: translate(-50%, -50%);
}

.brand-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 36px 0 0 54px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: linear-gradient(135deg, #7a6af4, #5a52db);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.6rem;
    box-shadow: 0 12px 28px rgba(56, 53, 155, 0.4);
}

.brand-title-block {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.brand-subtitle {
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.75;
}

.brand-hero {
    position: absolute;
    left: 78px;
    bottom: 72px;
    z-index: 1;
    color: rgba(255, 255, 255, 0.9);
}

.brand-hero h1 {
    margin: 0;
    font-size: clamp(2.6rem, 5vw, 5rem);
    font-weight: 300;
    letter-spacing: -0.07em;
    color: rgba(255, 255, 255, 0.92);
}

.brand-hero p {
    margin-top: 10px;
    font-size: 1.15rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.86);
    max-width: 460px;
}

.login-panel {
    position: relative;
    flex: 1;
    background: #f4f4f5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-card {
    width: min(100%, 430px);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(136, 145, 170, 0.18);
    border-radius: 14px;
    padding: 32px 26px 26px;
    box-shadow: 0 18px 35px rgba(31, 41, 55, 0.08);
}

.card-kicker {
    margin: 0 0 8px;
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    font-weight: 700;
    color: #8d8f9d;
    text-transform: uppercase;
}

.login-card h2 {
    margin: 0;
    text-align: center;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 500;
    color: #1f2937;
}

.login-card p {
    margin: 12px 0 22px;
    text-align: center;
    color: #6b7280;
    font-size: 0.95rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.form-control {
    width: 100%;
    height: 46px;
    border: 1px solid #d5d9e0;
    border-radius: 8px;
    background: #f9fafb;
    padding: 0 14px;
    font-size: 1rem;
    color: #111827;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control::placeholder {
    color: #9aa0ad;
}

.form-control:focus {
    border-color: rgba(95, 89, 219, 0.8);
    box-shadow: 0 0 0 3px rgba(95, 89, 219, 0.12);
    outline: none;
}

.input-senha {
    position: relative;
}

.input-senha .form-control {
    padding-right: 42px;
}

.toggle-senha {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #737b8d;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.toggle-senha:focus {
    outline: none;
}

.btn-rud {
    width: 100%;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #7564ee 0%, #5b4ae2 100%);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    height: 48px;
    margin-top: 8px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 12px 24px rgba(91, 74, 226, 0.24);
}

.btn-rud:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.form-alert {
    margin-top: 18px;
    font-size: 0.88rem;
    text-align: center;
    color: #d11a2a;
    font-weight: 600;
}

.login-footer {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(35, 40, 51, 0.75);
    font-size: 0.74rem;
    letter-spacing: 0.02em;
}

@media (max-width: 980px) {
    .access-layout {
        flex-direction: column;
    }

    .brand-panel {
        flex-basis: auto;
        min-height: 40vh;
    }

    .brand-hero {
        left: 40px;
        bottom: 26px;
    }

    .brand-panel::before,
    .brand-panel::after {
        display: none;
    }

    .login-panel {
        min-height: 60vh;
        padding: 24px 18px 80px;
    }
}

@media (max-width: 520px) {
    .brand-header {
        padding-left: 24px;
    }

    .brand-hero {
        left: 24px;
        right: 24px;
    }

    .brand-hero p {
        font-size: 1rem;
    }

    .login-card {
        padding: 24px 18px 20px;
    }
}
