
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 36px 20px 48px;
    background: linear-gradient(135deg, #f0f7f4 0%, #e3f2ec 60%, #dceef9 100%);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 158, 122, 0.1) 0%, transparent 70%);
    top: -150px;
    left: -100px;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(58, 123, 213, 0.08) 0%, transparent 70%);
    bottom: -120px;
    right: -80px;
    pointer-events: none;
}

.logo {
    margin-bottom: 24px;
    animation: fadeDown 0.5s ease both;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.card {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border: 1px solid #d4e8df;
    border-radius: 20px;
    padding: 36px 36px 32px;
    box-shadow: 0 8px 32px rgba(26, 158, 122, 0.08);
    animation: fadeUp 0.6s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a2e25;
    margin-bottom: 4px;
}

.card-sub {
    font-size: 13px;
    color: #6a8e80;
    margin-bottom: 24px;
}

.erro-msg {
    background: rgba(239, 68, 68, 0.07);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #dc2626;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 18px;
    text-align: center;
}

.erro-msg p {
    margin: 4px 0;
}

.erro-msg p:first-child {
    margin-top: 0;
}

.erro-msg p:last-child {
    margin-bottom: 0;
}

.section-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #8aab9e;
    margin: 18px 0 10px;
}

.section-label:first-of-type {
    margin-top: 0;
}

.campo {
    position: relative;
    margin-bottom: 12px;
}

.campo input,
.campo select {
    width: 100%;
    background: #f8fdfb;
    border: 1px solid #d4e8df;
    border-radius: 12px;
    padding: 18px 16px 8px;
    font-size: 15px;
    font-family: inherit;
    color: #1a2e25;
    outline: none;
    transition: border-color 0.25s, background 0.25s;
    box-sizing: border-box;
    appearance: none;
}

.campo select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238aab9e' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-color: #f8fdfb;
    padding-right: 38px;
}

.campo input:focus,
.campo select:focus {
    border-color: #1a9e7a;
    background-color: #f0faf6;
}

.campo label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #8aab9e;
    pointer-events: none;
    transition: 0.25s ease;
}

.campo input:focus+label,
.campo input:valid+label,
.campo select.filled+label {
    top: 10px;
    transform: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #1a9e7a;
    text-transform: uppercase;
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Password strength */
.strength-wrap {
    margin: -4px 0 12px;
}

.strength-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}

.strength-bar span {
    flex: 1;
    height: 3px;
    border-radius: 99px;
    background: #e3f2ec;
    transition: background 0.3s;
}

.strength-text {
    font-size: 11px;
    color: #8aab9e;
}

.erro-inline {
    color: #dc2626;
    font-size: 12px;
    margin-top: -6px;
    margin-bottom: 10px;
    display: none;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: #1a9e7a;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    font-family: inherit;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
    background: #158a6a;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.extra {
    margin-top: 22px;
    text-align: center;
    font-size: 13px;
    color: #6a8e80;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.extra a {
    color: #1a9e7a;
    text-decoration: none;
    font-weight: 600;
}

.extra a:hover {
    color: #158a6a;
}

.divider {
    display: flex;
    align-items: center;
    gap: 10px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #d4e8df;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 520px) {
    .card {
        padding: 26px 18px 24px;
        border-radius: 16px;
    }

    .row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 480px) {
    body {
        align-items: stretch;
    }

    .logo {
        display: flex;
        justify-content: center;
    }
}

.campo-senha-wrap input {
    padding-right: 46px;
}

.campo-senha-wrap .toggle-senha {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #8aab9e;
    padding: 0;
    display: flex;
    align-items: center;
    z-index: 2;
}

.campo-senha-wrap .toggle-senha:hover {
    color: #1a9e7a;
}

.campo-senha-wrap label {
    z-index: 1;
}
