/* ====== Registration Flow Styles ====== */
.register-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--clr-bg-base);
    position: relative;
    overflow: hidden;
}

.register-page::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('../assets/images/background_Regitrar.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.register-card {
    width: 100%;
    max-width: 580px;
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.register-header {
    text-align: center;
    margin-bottom: 2rem;
}

.register-logo {
    height: 50px;
    margin-bottom: 1.5rem;
}

.register-title {
    font-size: 1.75rem;
    color: var(--clr-brand-blue-dark);
    margin-bottom: 0.5rem;
}

.register-subtitle {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

/* ====== Steps Indicator ====== */
.steps-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #E0E0E0;
    transition: all 0.3s ease;
}

.step-dot.active {
    background: var(--clr-brand-blue-dark);
    width: 32px;
    border-radius: 5px;
}

.step-dot.done {
    background: var(--clr-brand-green);
}

/* ====== Role Cards ====== */
.role-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.role-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: #FFFFFF;
    border: 2px solid #E8EDF2;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.role-card:hover {
    border-color: var(--clr-brand-blue-light);
    box-shadow: 0 8px 24px rgba(3, 76, 140, 0.1);
    transform: translateY(-2px);
}

.role-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 2rem;
}

.role-card-icon.truck {
    background: rgba(242, 185, 12, 0.12);
    color: #D4A017;
}

.role-card-icon.company {
    background: rgba(3, 76, 140, 0.1);
    color: var(--clr-brand-blue-dark);
}

.role-card-info {
    flex: 1;
}

.role-card-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--clr-text-main);
}

.role-card-info p {
    font-size: 0.875rem;
    color: var(--clr-text-muted);
    line-height: 1.4;
}

.role-card-arrow {
    color: #CCC;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.role-card:hover .role-card-arrow {
    color: var(--clr-brand-blue-dark);
    transform: translateX(4px);
}

/* ====== Step Sections ====== */
.step-section {
    display: none;
    animation: fadeSlideIn 0.4s ease forwards;
}

.step-section.active {
    display: block;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== CPF Verification ====== */
.cpf-check-box {
    text-align: center;
    padding: 1rem 0;
}

.cpf-check-box p {
    color: var(--clr-text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* ====== Messages ====== */
.msg-box {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    line-height: 1.4;
}

.msg-box.error {
    background: #FFEBEE;
    color: #D32F2F;
    border-left: 4px solid #D32F2F;
}

.msg-box.success {
    background: #E8F5E9;
    color: #2E7D32;
    border-left: 4px solid #2E7D32;
}

.msg-box.info {
    background: #E3F2FD;
    color: #1565C0;
    border-left: 4px solid #1565C0;
}

.msg-box a {
    font-weight: 600;
    text-decoration: underline;
}

/* ====== Form Section Header ====== */
.form-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--clr-text-main);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #F0F0F0;
}

/* ====== Back Button ====== */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--clr-brand-blue-dark);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    background: none;
    border: none;
    margin-bottom: 1.5rem;
    padding: 0;
    transition: all 0.2s ease;
}

.btn-back:hover {
    color: var(--clr-brand-blue-light);
    transform: translateX(-3px);
}

/* ====== Grid Layout ====== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .register-page {
        padding: 1rem;
    }
    .register-card {
        padding: 1.5rem 1rem;
    }
    .role-card {
        padding: 1rem;
        gap: 0.8rem;
        align-items: center;
    }
    .role-card-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    .role-card-info h3 {
        font-size: 1rem;
    }
    .role-card-info p {
        font-size: 0.8rem;
    }
}

/* ====== Checkbox & Terms ====== */
.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1.5rem 0;
    font-size: 0.85rem;
    color: var(--clr-text-muted);
}

.terms-check input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--clr-brand-blue-dark);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.terms-check a {
    color: var(--clr-brand-blue-dark);
    font-weight: 500;
}

/* ====== WhatsApp Info ====== */
.whatsapp-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #F0FFF4;
    border: 1px solid #C6F6D5;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    color: #276749;
}

.whatsapp-info i {
    font-size: 1.25rem;
    color: #25D366;
}

/* ====== Loading Spinner ====== */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(3, 76, 140, 0.2);
    border-top-color: var(--clr-brand-blue-dark);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ====== Auth Footer ====== */
.register-footer {
    margin-top: 2rem;
    text-align: center;
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

.register-footer a {
    color: var(--clr-brand-blue-dark);
    font-weight: 600;
}

/* Upload Boxes */
.upload-box {
    border: 2px dashed #D0D5DD;
    border-radius: 10px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #FAFBFC;
}
.upload-box:hover {
    border-color: #034C8C;
    background: #F0F4FF;
}
.upload-box.has-file {
    border-color: #2E7D32;
    background: #F1F8E9;
}
.upload-box-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
}
.upload-box-content img {
    width: 100%;
    max-height: 80px;
    object-fit: contain;
    border-radius: 6px;
}

.back-home {
    position: absolute;
    top: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--clr-brand-blue-dark);
    font-weight: 600;
    z-index: 10;
}
