/* SISGCM - Estilos específicos para a página de cadastro */

.cadastro-wrapper {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 800px;
    width: 100%;
    min-height: 700px;
}

/* Header */
.header-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.header-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></svg>') repeat;
    animation: float 20s infinite linear;
}

.header-section .logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1;
    position: relative;
}

.header-section .logo-icon {
    font-size: 2.5rem;
    color: #ffd700;
}

.header-section h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.header-section .subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.back-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-3px);
}

/* Formulário */
.form-section {
    padding: 40px;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
}

/* Indicador de progresso */
.progress-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.progress-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e1e5e9;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e1e5e9;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
    text-align: center;
}

.step.active .step-number {
    background: #2a5298;
    color: white;
}

.step.active .step-label {
    color: #2a5298;
}

.step.completed .step-number {
    background: #28a745;
    color: white;
}

.step.completed .step-number::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

/* Etapas do formulário */
.form-step {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.form-step.active {
    display: block;
}

.form-step h2 {
    color: #1e3c72;
    margin-bottom: 8px;
    font-size: 1.8rem;
}

.step-description {
    color: #666;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* Layout de formulário */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    flex: 1;
}

.form-group.half {
    flex: 0 0 calc(50% - 10px);
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 16px;
    color: #666;
    z-index: 1;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.input-group select {
    cursor: pointer;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #2a5298;
    background: white;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.help-text {
    font-size: 0.8rem;
    color: #666;
    margin-top: 4px;
    display: block;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    min-height: 20px;
    margin-top: 4px;
    display: block;
}

/* Informações do grupo */
.grupo-info {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    display: none;
}

.grupo-info.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.grupo-info h4 {
    color: #1e3c72;
    margin-bottom: 12px;
    font-size: 1rem;
}

.grupo-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.grupo-info li {
    padding: 6px 0;
    color: #555;
    font-size: 0.9rem;
}

.grupo-info li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #28a745;
    margin-right: 8px;
}

/* Força da senha */
.password-strength {
    margin: 12px 0;
}

.strength-bar {
    height: 4px;
    background: #e1e5e9;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    font-size: 0.85rem;
    font-weight: 500;
}

.password-strength.weak .strength-fill {
    width: 25%;
    background: #dc3545;
}

.password-strength.weak .strength-text {
    color: #dc3545;
}

.password-strength.fair .strength-fill {
    width: 50%;
    background: #ffc107;
}

.password-strength.fair .strength-text {
    color: #856404;
}

.password-strength.good .strength-fill {
    width: 75%;
    background: #17a2b8;
}

.password-strength.good .strength-text {
    color: #117a8b;
}

.password-strength.strong .strength-fill {
    width: 100%;
    background: #28a745;
}

.password-strength.strong .strength-text {
    color: #155724;
}

/* Requisitos da senha */
.password-requirements {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    padding: 16px;
    margin: 16px 0;
}

.password-requirements h4 {
    color: #1e3c72;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.password-requirements li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #666;
}

.password-requirements li i {
    color: #dc3545;
    width: 12px;
}

.password-requirements li.valid i {
    color: #28a745;
}

/* Verificação por email */
.email-verification {
    text-align: center;
}

.verification-info {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.verification-info i {
    font-size: 3rem;
    color: #2a5298;
    margin-bottom: 16px;
}

.verification-info h3 {
    color: #1e3c72;
    margin-bottom: 12px;
}

.verification-info p {
    color: #666;
    margin-bottom: 8px;
}

.verification-info strong {
    color: #2a5298;
    font-size: 1.1rem;
}

.small-text {
    font-size: 0.85rem !important;
    margin-top: 8px !important;
}

.dev-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 12px;
    margin-top: 16px;
    color: #856404;
}

.code-input-group {
    max-width: 300px;
    margin: 0 auto;
}

.code-input-group input {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    font-weight: 600;
    padding: 16px;
}

.verification-timer {
    margin: 20px 0;
    color: #666;
}

.verification-timer p {
    margin-bottom: 12px;
}

.resend-btn {
    background: none;
    border: 1px solid #2a5298;
    color: #2a5298;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.resend-btn:hover:not(:disabled) {
    background: #2a5298;
    color: white;
}

.resend-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Botões */
.form-buttons {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-top: 30px;
}

.next-btn,
.prev-btn,
.submit-btn {
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 150px;
    justify-content: center;
    text-decoration: none;
}

.next-btn,
.submit-btn {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: white;
    margin-left: auto;
}

.next-btn:hover,
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(42, 82, 152, 0.3);
}

.prev-btn {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e1e5e9;
}

.prev-btn:hover {
    background: #e9ecef;
    color: #333;
}

.submit-btn {
    position: relative;
}

.submit-btn:disabled {
    pointer-events: none;
    opacity: 0.7;
}

/* Responsividade */
@media (max-width: 768px) {
    .cadastro-wrapper {
        margin: 10px;
        border-radius: 15px;
    }

    .header-section {
        padding: 20px;
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .form-section {
        padding: 30px 20px;
    }

    .progress-indicator {
        flex-direction: column;
        gap: 20px;
    }

    .progress-indicator::before {
        display: none;
    }

    .step {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }

    .form-row {
        flex-direction: column;
        gap: 16px;
    }

    .form-group.half {
        flex: 1;
    }

    .password-requirements ul {
        grid-template-columns: 1fr;
    }

    .form-buttons {
        flex-direction: column;
    }

    .next-btn,
    .prev-btn,
    .submit-btn {
        margin: 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header-section {
        padding: 16px;
    }

    .header-section h1 {
        font-size: 1.5rem;
    }

    .form-section {
        padding: 20px 16px;
    }

    .form-step h2 {
        font-size: 1.5rem;
    }
}


