/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Estilizando a logo no canto superior esquerdo */
.logo-container {
    position: absolute;
    top: 15px; /* Mantive o valor padrão */
    left: 250px; /* Valor padrão para desktop */
}

.register-logo {
    width: 45px; /* Tamanho padrão para desktop */
    height: auto;
}

/* Container do registro */
.register-container {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    margin-top: 70px;
    text-align: center;
}

.register-container h2 {
    font-size: 22px;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 15px;
}

/* Formulário */
.form-group {
    margin-bottom: 15px;
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

.form-group input {
    width: 100%;
    padding: 8px 8px 8px 35px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
}

.toggle-password i {
    font-size: 16px;
}

/* Mensagens de erro */
.error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    display: block;
    min-height: 20px;
}

/* Opções (botão de registro) */
.options {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

/* Botão de registro */
.register-btn {
    padding: 8px 18px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.register-btn:hover {
    background: #0056b3;
}

/* Links */
.links {
    font-size: 13px;
    margin-bottom: 15px;
}

.login-link {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Separador "ou" */
.separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
}

.separator-line {
    flex: 1;
    height: 1px;
    background: #ccc;
}

.separator-text {
    margin: 0 8px;
    font-size: 13px;
    color: #666;
}

/* Botões sociais */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-btn {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.facebook-btn {
    background: #3b5998;
}

.facebook-btn:hover {
    background: #2d4373;
}

.google-btn {
    background: #db4437;
}

.google-btn:hover {
    background: #c1351d;
}

.social-icon {
    width: 22px;
    height: 22px;
}

/* Mensagem de Termos e Privacidade */
.terms-message {
    margin-top: 15px;
    text-align: center;
    font-size: 11px;
    color: #666;
}

.terms-message p {
    margin: 0;
}

.terms-message .terms-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.terms-message .terms-link:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* Responsividade Melhorada */
@media (max-width: 480px) {
    .logo-container {
        top: 10px;
        left: 50%; /* Centraliza horizontalmente */
        transform: translateX(-50%); /* Ajusta para o centro exato */
    }

    .register-logo {
        width: 50px; /* Aumentei para 50px no mobile */
    }

    .register-container {
        padding: 20px;
        max-width: 90%;
        margin-top: 60px;
    }

    .register-container h2 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-group input {
        padding: 7px 7px 7px 30px;
        font-size: 14px;
    }

    .error-message {
        font-size: 12px;
    }

    .options {
        margin-bottom: 12px;
    }

    .register-btn {
        padding: 7px 15px;
        font-size: 14px;
    }

    .links {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .separator {
        margin: 12px 0;
    }

    .separator-text {
        font-size: 12px;
        margin: 0 6px;
    }

    .social-buttons {
        gap: 6px;
    }

    .social-btn {
        padding: 7px;
        font-size: 14px;
        gap: 6px;
    }

    .social-icon {
        width: 20px;
        height: 20px;
    }

    .terms-message {
        font-size: 10px;
        margin-top: 12px;
    }
}