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

body {
    font-family: "Manrope", sans-serif;
    background: #0A1216;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.card {
    display: flex;
    width: 100%;
    max-width: 860px;
    min-height: 520px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 48px rgba(0, 0, 0, .5);
    background: #14232B;
}


/* ── Lado esquerdo ── */

.card-left {
    width: 38%;
    flex-shrink: 0;
    background: linear-gradient(145deg, #1E3540 0%, #1F5570 45%, #2E8FE3 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.card-left-logo {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-left-logo img {
    width: 30px;
    height: 30px;
}

.card-left-logo span {
    font-family: 'Fraunces', serif;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
}


/* Bolhas decorativas */

.card-left::before {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .10);
    top: -40px;
    right: -40px;
}

.card-left::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    bottom: 60px;
    left: -30px;
}

.bubble1 {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    bottom: 180px;
    right: 20px;
}

.bubble2 {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    top: 120px;
    left: 30px;
}

.bubble3 {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .10);
    top: 200px;
    right: 50px;
}

.card-left-bottom {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.card-left-bottom span {
    font-size: 12px;
    color: rgba(255, 255, 255, .65);
    font-weight: 500;
}

.card-left-bottom strong {
    font-size: 17px;
    color: #fff;
    font-weight: 700;
    line-height: 1.4;
}


/* ── Lado direito ── */

.card-right {
    flex: 1;
    padding: 2.75rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #14232B;
}

.logo-area {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: 1.75rem;
}

.logo-area h1 {
    font-family: 'Fraunces', serif;
    font-size: 24px;
    font-weight: 600;
    color: #EAF1F3;
}

.logo-area p {
    font-size: 13px;
    color: #9DB2BA;
    line-height: 1.5;
    max-width: 280px;
}


/* ── Fields ── */

.field {
    margin-bottom: 1.1rem;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #9DB2BA;
    margin-bottom: 7px;
}

.input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid #2E4650;
    border-radius: 12px;
    padding: 0 14px;
    height: 48px;
    min-height: 48px;
    background: #0D1B21;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}

.input-wrap:focus-within {
    border-color: #2E8FE3;
    box-shadow: 0 0 0 3px rgba(46, 143, 227, .18);
}

.icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #6B838B;
}

.icon svg,
.eye-btn svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    display: block;
}

.input-wrap input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    background: transparent;
    height: 100%;
    padding: 0;
    color: #EAF1F3;
    -webkit-appearance: none;
    appearance: none;
}

.input-wrap input::placeholder {
    color: #5C7178;
}

.input-wrap input[type="password"]::-ms-reveal,
.input-wrap input[type="password"]::-ms-clear {
    display: none;
}

.input-wrap input::-webkit-credentials-auto-fill-button,
.input-wrap input::-webkit-contacts-auto-fill-button {
    visibility: hidden;
    display: none!important;
    pointer-events: none;
    position: absolute;
}

.input-wrap input[type="password"]::-webkit-textfield-decoration-container {
    display: none;
}

.eye-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #6B838B;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    transition: color .15s;
}

.eye-btn:hover {
    color: #2E8FE3;
}


/* ── Esqueceu ── */

.forgot-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
    margin-top: 4px;
}

.forgot-row a {
    font-size: 12px;
    color: #2E8FE3;
    text-decoration: none;
    font-weight: 600;
}

.forgot-row a:hover {
    text-decoration: underline;
}


/* ── Botão ── */

.btn-enter {
    width: 100%;
    height: 48px;
    background: #2E8FE3;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 18px rgba(46, 143, 227, .4);
    transition: background .2s, box-shadow .2s;
}

.btn-enter:hover {
    background: #1F73C4;
    box-shadow: 0 6px 24px rgba(46, 143, 227, .55);
}


/* ── Erro ── */

.msg-erro {
    font-size: 12px;
    color: #ef4444;
    text-align: center;
    margin-top: 10px;
    min-height: 16px;
}


/* ── Sucesso ── */

.msg-sucesso {
    font-size: 12px;
    color: #3FB37E;
    text-align: center;
    margin-top: 10px;
    min-height: 16px;
}


/* ── Mobile ── */

@media(max-width:640px) {
    body {
        padding: 1rem;
        background: #0A1216;
    }
    .card {
        flex-direction: column;
        max-width: 440px;
    }
    .card-left {
        width: 100%;
        min-height: 140px;
        justify-content: flex-end;
        padding: 1.5rem;
    }
    .card-right {
        padding: 2rem 1.5rem;
    }
    .input-wrap input {
        font-size: 16px;
    }
}
