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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    height: 100vh;
}

.container {
    display: flex;
    height: 100vh;
    position: relative;
}

/* Imagem de fundo - cobre toda a tela */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../imagens/fundo-login.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Faixa roxa lateral esquerda - 35% da tela */
.sidebar {
    width: 35%;
    background-color: rgba(97, 16, 106, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 20px;
}

/* Card branco centralizado */
.card {
    background-color: white;
    border-radius: 8px;
    padding: 40px 35px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 90vh;
    overflow-y: auto;
}

/* Scroll personalizado */
.card::-webkit-scrollbar {
    width: 6px;
}

.card::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.card::-webkit-scrollbar-thumb {
    background: #61106A;
    border-radius: 10px;
}

.card::-webkit-scrollbar-thumb:hover {
    background: #4d0d55;
}

.card.hidden {
    display: none;
}

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 25px;
}

.logo img {
    max-width: 180px;
    height: auto;
}

/* Formulários */
form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Grupos de input */
.input-group {
    position: relative;
    width: 100%;
}

.input-group input {
    width: 100%;
    padding: 12px 35px 12px 12px;
    border: none;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    font-size: 14px;
    transition: border-color 0.3s;
    background-color: transparent;
}

.input-group input:focus {
    outline: none;
    border-bottom-color: #61106A;
}

.input-group i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
}

/* Input row para campos lado a lado */
.input-row {
    display: flex;
    gap: 10px;
}

.input-row .input-group {
    flex: 1;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0;
}

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

.checkbox-group label {
    font-size: 11px;
    color: #666;
    cursor: pointer;
    user-select: none;
}

/* Botões */
.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: #61106A;
    color: white;
    margin-top: 5px;
}

.btn-primary:hover {
    background-color: #4d0d55;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(97, 16, 106, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #61106A;
    border: 2px solid #61106A;
    margin-top: 5px;
}

.btn-secondary:hover {
    background-color: #61106A;
    color: white;
}

.btn-link {
    background-color: transparent;
    color: #61106A;
    border: none;
    margin-top: 5px;
    text-decoration: none;
}

.btn-link:hover {
    text-decoration: underline;
    background-color: transparent;
}

/* Link Esqueci Senha */
.link-esqueci-senha {
    display: block;
    text-align: right;
    color: #61106A;
    font-size: 12px;
    text-decoration: none;
    margin: 8px 0 15px;
}

.link-esqueci-senha:hover {
    text-decoration: underline;
}

/* Títulos e Descrições */
.form-titulo {
    color: #61106A;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

.form-descricao {
    color: #666;
    font-size: 13px;
    margin-bottom: 20px;
    text-align: center;
}

/* Tipo de Pessoa */
.tipo-pessoa {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    justify-content: center;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.radio-option input[type="radio"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.radio-option span {
    user-select: none;
}

/* Planos */
.planos-section {
    margin: 0 0 15px 0;
}

.planos-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.planos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.plano-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 12px;
    font-weight: 600;
    color: #666;
}

.plano-option:hover {
    border-color: #61106A;
    background-color: rgba(97, 16, 106, 0.05);
}

.plano-option input[type="radio"] {
    margin-right: 6px;
}

.plano-option input[type="radio"]:checked + span {
    color: #61106A;
}

.plano-option:has(input[type="radio"]:checked) {
    border-color: #61106A;
    background-color: rgba(97, 16, 106, 0.1);
}

/* Seção de Cartão */
.cartao-section {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
}

.cartao-titulo {
    font-size: 15px;
    font-weight: 600;
    color: #61106A;
    margin-bottom: 10px;
}

.cartao-aviso {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px;
    margin-bottom: 15px;
    font-size: 11px;
    color: #856404;
    line-height: 1.5;
}

.cartao-aviso i {
    margin-right: 6px;
    color: #ffc107;
}

.cartao-aviso strong {
    display: block;
    margin-bottom: 4px;
}

/* Responsividade */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        background-color: rgba(97, 16, 106, 0.95);
    }
    
    .background-image {
        position: absolute;
        width: 100%;
        height: 100%;
        z-index: 1;
    }
    
    .card {
        max-width: 350px;
        z-index: 2;
    }
}

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

.card {
    animation: fadeIn 0.3s ease-in-out;
}
