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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, sans-serif;
    background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.register-container {
    width: 100%;
    max-width: 480px;
}

.register-card {
    background: white;
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.register-header {
    text-align: center;
    margin-bottom: 32px;
}

.register-header .logo {
    font-size: 28px;
    font-weight: 700;
    color: #1d1d1f;
    text-decoration: none;
}

.register-header p {
    color: #6e6e73;
    font-size: 16px;
    margin-top: 4px;
}

/* ========== STEPS ========== */
.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    gap: 0;
}

.step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    background: #e8e8ed;
    color: #6e6e73;
    transition: all 0.3s;
    flex-shrink: 0;
}

.step.active {
    background: #007aff;
    color: white;
}

.step.completed {
    background: #34c759;
    color: white;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #e8e8ed;
    max-width: 40px;
}

/* ========== FORM ========== */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: #1d1d1f;
}

input, select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s;
    background: white;
    font-family: inherit;
}

input:focus, select:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

input::placeholder {
    color: #c6c6c8;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: #007aff;
    color: white;
    border: none;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.btn-primary:hover {
    background: #0051b3;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mensagem {
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: none;
    font-size: 14px;
}

.mensagem.erro {
    background: #ffe5e5;
    color: #ff3b30;
    display: block;
}

.mensagem.sucesso {
    background: #d4edda;
    color: #155724;
    display: block;
}

/* ========== VERIFICAÇÃO ========== */
.verification-icon, .lock-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 16px;
}

h2 {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1d1d1f;
}

.verification-text {
    text-align: center;
    color: #6e6e73;
    margin-bottom: 24px;
    font-size: 14px;
}

.code-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 8px;
}

.code-input {
    width: 44px;
    height: 52px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background: white;
}

.code-input:focus {
    border-color: #007aff;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

/* ========== PALAVRA-PASSE ========== */
.password-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.password-wrapper input {
    flex: 1;
}

.toggle-password {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    color: #6e6e73;
}

.password-requirements {
    margin: 16px 0 24px 0;
    font-size: 13px;
    color: #6e6e73;
}

.password-requirements p {
    padding: 4px 0;
}

.password-requirements p.valid {
    color: #34c759;
}

/* ========== RESEND ========== */
.resend-area {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.resend-area p {
    font-size: 14px;
    color: #6e6e73;
}

.resend-area a {
    color: #007aff;
    text-decoration: none;
    font-weight: 500;
}

.back-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
    color: #6e6e73;
    text-decoration: none;
}

.back-link:hover {
    color: #007aff;
}

.footer-link {
    text-align: center;
    margin-top: 24px;
}

.footer-link a {
    color: #007aff;
    text-decoration: none;
    font-weight: 500;
}

/* ========== RESPONSIVO ========== */
@media (max-width: 500px) {
    .register-card {
        padding: 24px;
        border-radius: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .code-input {
        width: 38px;
        height: 46px;
        font-size: 18px;
    }

    .steps .step {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .step-line {
        max-width: 24px;
    }
}