
    .login-container {
        min-height: calc(100vh - 200px);
        padding: 40px 20px; /* Baseado no login, mas o registro usa 60px 20px. Vamos priorizar a centralização flexbox do login */
        background: #f9f9f9;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Estilos para Caixa de Login (mais estreita) e Registro (mais larga) */
    .login-box,
    .register-box {
        background: #fff;
        padding: 60px 50px;
        width: 100%;
        margin: 0 auto;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    .login-box {
        max-width: 450px;
    }

    .register-box {
        max-width: 800px;
        /* Para o register-box, removemos o flexbox do container. O margin: 0 auto; é suficiente.
           Como o container usa flexbox, ele centraliza o item de qualquer forma. */
    }

    /* Estilos de Títulos Comuns */
    .login-box h1,
    .register-box h1 {
        font-size: 2rem;
        font-weight: 300;
        text-align: center;
        margin-bottom: 10px;
        letter-spacing: 2px;
        text-transform: uppercase;
    }

    /* Estilos de Subtítulo/Descrição Comuns */
    .login-box > p,
    .register-box > p {
        text-align: center;
        color: #666;
        margin-bottom: 40px;
        font-size: 0.95rem;
    }

    /* Estilo Específico do Registro: Título de Seção */
    .section-title {
        font-size: 1.1rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin: 30px 0 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid #000;
    }

    /* Estilo Específico do Registro: Layout de Colunas */
    .form-row {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        margin-bottom: 20px;
    }

    /* Estilos de Grupo de Formulário Comuns */
    .form-group {
        margin-bottom: 20px; /* Padrão do registro (login usava 25px, escolhemos 20px) */
    }
    
    .login-box .form-group {
        margin-bottom: 25px; /* Manter a margem maior para o login mais espaçado */
    }

    .form-group.full-width {
        grid-column: 1 / -1;
    }

    /* Estilos de Label Comuns */
    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-size: 0.85rem; /* Padrão do registro (login usava 0.9rem) */
        font-weight: 500;
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }

    .login-box .form-group label {
        font-size: 0.9rem; /* Manter o tamanho maior para o login */
    }

    .form-group label .required {
        color: #c33;
    }

    /* Estilos de Input/Select Comuns */
    .form-group input,
    .form-group select {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid #ddd;
        font-size: 1rem;
        transition: border-color 0.3s;
        font-family: inherit;
    }

    .form-group input:focus,
    .form-group select:focus {
        outline: none;
        border-color: #000;
    }

    /* Estilo Específico do Registro: Texto de Ajuda */
    .form-help {
        font-size: 0.8rem;
        color: #999;
        margin-top: 5px;
    }

    /* Estilo Específico do Registro: Checkbox */
    .checkbox-group {
        margin: 25px 0;
    }

    .checkbox-group label {
        display: flex;
        align-items: flex-start;
        font-size: 0.9rem;
        font-weight: normal;
        text-transform: none;
        letter-spacing: normal;
        cursor: pointer;
        line-height: 1.5;
    }

    .checkbox-group input[type="checkbox"] {
        width: auto;
        margin-right: 10px;
        margin-top: 3px;
        cursor: pointer;
    }

    /* Estilos de Botão Comuns */
    .btn-register,
    .btn-login {
        width: 100%;
        padding: 16px; /* Padrão do registro (login usava 15px, escolhemos 16px) */
        background: #000;
        color: #fff;
        border: none;
        font-size: 0.95rem;
        font-weight: 500;
        letter-spacing: 1px;
        text-transform: uppercase;
        cursor: pointer;
        transition: background 0.3s;
        font-family: inherit;
        margin-top: 20px; /* Apenas para o register, mas funciona bem para ambos */
    }

    .btn-login {
        margin-top: 0; /* O login não precisa desse padding extra */
        padding: 15px; /* Volta para o padding original do login */
    }

    .btn-register:hover,
    .btn-login:hover {
        background: #333;
    }

    .btn-register:disabled,
    .btn-login:disabled {
        background: #999;
        cursor: not-allowed;
    }

    /* Estilos de Alerta Comuns */
    .alert {
        padding: 12px 15px;
        margin-bottom: 25px;
        border-radius: 3px;
        font-size: 0.9rem;
    }

    .alert-error {
        background: #fee;
        color: #c33;
        border-left: 3px solid #c33;
    }
    
    .alert-success {
        background: #efe;
        color: #3c3;
        border-left: 3px solid #3c3;
    }

    /* Estilo Específico do Registro: Força da Senha */
    .password-strength {
        margin-top: 8px;
        height: 4px;
        background: #ddd;
        border-radius: 2px;
        overflow: hidden;
    }

    .password-strength-bar {
        height: 100%;
        width: 0%;
        transition: all 0.3s;
        background: #ccc;
    }

    .password-strength-bar.weak { width: 33%; background: #f44; }
    .password-strength-bar.medium { width: 66%; background: #fa0; }
    .password-strength-bar.strong { width: 100%; background: #4a4; }

    /* Estilo de Carregamento Comum */
    .loading {
        display: inline-block;
        width: 14px;
        height: 14px;
        border: 2px solid #999;
        border-top-color: transparent;
        border-radius: 50%;
        animation: spin 0.6s linear infinite;
        margin-left: 8px;
    }

    @keyframes spin {
        to { transform: rotate(360deg); }
    }
    
    /* Estilo Específico do Login: Links Auxiliares */
    .form-links {
        text-align: center;
        margin-top: 25px;
    }

    .form-links a,
    .checkbox-group a {
        color: #000;
        text-decoration: none;
        font-size: 0.9rem;
        border-bottom: 1px solid #000;
        transition: opacity 0.3s;
    }
    
    .checkbox-group a {
        font-size: inherit; /* Usa o tamanho do texto do checkbox, não 0.9rem fixo */
    }

    .form-links a:hover {
        opacity: 0.6;
    }

    /* Estilo Específico do Login: Divisor */
    .divider {
        text-align: center;
        margin: 30px 0;
        position: relative;
    }

    .divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: #ddd;
    }

    .divider span {
        background: #fff;
        padding: 0 15px;
        position: relative;
        color: #999;
        font-size: 0.85rem;
    }
    
    /* Estilos de Link para Mudar de Página (Login <-> Registro) Comuns */
    .register-link {
        text-align: center;
        margin-top: 30px;
        padding-top: 30px;
        border-top: 1px solid #eee;
        color: #666;
        font-size: 0.95rem;
    }

    .register-link a {
        color: #000;
        font-weight: 500;
        text-decoration: none;
        border-bottom: 1px solid #000;
    }
    
    /* Estilos Específicos do Login: Modal de Recuperação */
    .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 10000;
        align-items: center;
        justify-content: center;
    }

    .modal.active {
        display: flex;
    }

    .modal-content {
        background: #fff;
        padding: 40px;
        max-width: 500px;
        width: 90%;
        position: relative;
    }

    .modal-close {
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 1.5rem;
        cursor: pointer;
        background: none;
        border: none;
        padding: 5px 10px;
    }

    .modal-content h2 {
        font-size: 1.5rem;
        font-weight: 300;
        margin-bottom: 15px;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    /* Media Queries Comuns */
    @media (max-width: 768px) {
        .login-box,
        .register-box {
            padding: 40px 25px; /* Padrão do registro (login usava 30px, escolhemos 25px) */
        }
        
        .login-box {
            padding: 40px 30px; /* Manter 30px para o login */
        }

        .login-box h1,
        .register-box h1 {
            font-size: 1.5rem;
        }

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