/* CSS Simples para páginas de Login e Cadastro */

/* Container principal */
.cadastro-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
}

/* Box do formulário */
.cadastro-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
}

/* Ícone e título */
.cadastro-icon {
    text-align: center;
    margin-bottom: 30px;
}

.cadastro-icon svg {
    width: 60px;
    height: 60px;
    color: #2563eb;
    margin-bottom: 20px;
}

.cadastro-icon h2 {
    font-size: 28px;
    color: #1f2937;
    font-weight: 700;
    margin: 0;
}

/* Texto descritivo */
.cadastro-box > p {
    text-align: center;
    color: #6b7280;
    margin-bottom: 30px;
    font-size: 16px;
}

/* Seletor de tipo de usuário */
.user-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.user-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
}

.user-type-btn svg {
    width: 30px;
    height: 30px;
    stroke: #6b7280;
    transition: all 0.3s ease;
}

.user-type-btn:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.user-type-btn.active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #2563eb;
}

.user-type-btn.active svg {
    stroke: #2563eb;
}

/* Formulário */
.cadastro-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder {
    color: #9ca3af;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Botões */
.btn {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.btn-block {
    width: 100%;
}

/* Links */
a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Mensagens */
.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideIn 0.3s ease-out;
}

.error-message {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.success-message {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.message svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Animações */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.spin {
    animation: spin 1s linear infinite;
}

/* Botão Flutuante WhatsApp SAC */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.whatsapp-float-button {
    position: relative;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: white;
}

.whatsapp-float-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    text-decoration: none;
}

.whatsapp-float-button:active {
    transform: scale(0.95);
}

.whatsapp-float-button svg {
    width: 24px;
    height: 24px;
}

.whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    animation: whatsappPulse 2s infinite;
    pointer-events: none;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.whatsapp-tooltip {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #25D366;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-tooltip-header {
    font-weight: 700;
    font-size: 14px;
    color: #128C7E;
    margin-bottom: 8px;
}

.whatsapp-tooltip-number {
    font-weight: 600;
    font-size: 16px;
    color: #25D366;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.whatsapp-tooltip-text {
    font-size: 13px;
    color: #6b7280;
}

/* Responsivo */
@media (max-width: 768px) {
    .cadastro-box {
        padding: 30px 20px;
    }

    .cadastro-icon h2 {
        font-size: 24px;
    }

    .user-type-selector {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .user-type-btn {
        flex-direction: row;
        justify-content: flex-start;
        padding: 15px;
    }

    .user-type-btn svg {
        width: 24px;
        height: 24px;
    }

    /* WhatsApp Float - Mobile */
    .whatsapp-float {
        bottom: 20px;
        left: 16px;
    }

    .whatsapp-float-button {
        width: 48px;
        height: 48px;
    }

    .whatsapp-float-button svg {
        width: 22px;
        height: 22px;
    }

    .whatsapp-tooltip {
        min-width: 180px;
        padding: 12px;
    }

    .whatsapp-tooltip-header {
        font-size: 13px;
    }

    .whatsapp-tooltip-number {
        font-size: 15px;
    }

    .whatsapp-tooltip-text {
        font-size: 12px;
    }
}
