/* Variables específicas para registro */
:root {
    --primary-green: #00AA80;
    --primary-green-dark: #008060;
    --primary-green-light: #23C9A6;
    --accent-color: #00AA80;
    --text-dark: #333333;
    --text-medium: #555555;
    --text-light: #888888;
    --border-color: #E0E0E0;
    --background-light: #FFFFFF;
    --background-gray: #F8F8F8;
    --background-dark: #111111;
    --box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
}

/* Estilos generales */
body {
    background-color: var(--background-gray);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
    margin: 0;
}

.register-container {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
}

.register-box {
    display: flex;
    background-color: var(--background-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* Lado izquierdo - Formulario */
.register-left {
    flex: 1.2;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.register-header {
    text-align: center;
    margin-bottom: 30px;
}

.register-logo {
    max-width: 180px;
    margin-bottom: 20px;
}

.register-header h1 {
    font-size: 26px;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.header-description {
    color: var(--text-light);
    font-size: 14px;
    max-width: 400px;
    margin: 0 auto;
}

.register-form {
    flex: 1;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
    padding-right: 10px;
}

.register-form::-webkit-scrollbar {
    width: 6px;
}

.register-form::-webkit-scrollbar-track {
    background: var(--background-gray);
    border-radius: 10px;
}

.register-form::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 10px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-medium);
    font-size: 14px;
}

.input-with-icon {
    position: relative;
}

.icon-prefix {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.input-with-icon input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    transition: var(--transition);
    background-color: var(--background-light);
}

.input-with-icon input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 170, 128, 0.1);
    outline: none;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--primary-green);
}

/* Medidor de fortaleza de contraseña */
.strength-bar {
    height: 6px;
    background-color: var(--background-gray);
    border-radius: 3px;
    margin: 10px 0;
    overflow: hidden;
}

.strength-progress {
    height: 100%;
    width: 0;
    background-color: var(--error-color);
    transition: var(--transition);
}

.strength-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--error-color);
    margin-bottom: 15px;
}

/* Requisitos de contraseña */
.password-requirements {
    background-color: var(--background-gray);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.password-requirements p {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-medium);
}

.password-requirements ul {
    padding-left: 20px;
}

.password-requirements li {
    font-size: 13px;
    margin-bottom: 5px;
    color: var(--text-light);
}

.password-requirements li.met {
    color: var(--primary-green);
}

.password-requirements li.met::before {
    content: "✓ ";
}

.password-requirements li:not(.met)::before {
    content: "○ ";
}

/* Checkbox de términos */
.terms-checkbox {
    margin: 25px 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-medium);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    height: 18px;
    width: 18px;
    min-width: 18px;
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-right: 10px;
    transition: var(--transition);
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--primary-green);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.terms-link {
    color: var(--primary-green);
    text-decoration: none;
    transition: var(--transition);
}

.terms-link:hover {
    text-decoration: underline;
    color: var(--primary-green-dark);
}

/* Botón principal */
.btn {
    padding: 15px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-green);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 170, 128, 0.2);
}

/* Divisor */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: var(--text-light);
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider span {
    padding: 0 15px;
}

/* Botones sociales */
.social-register {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--background-light);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-medium);
    cursor: pointer;
    transition: var(--transition);
}

.btn-social i {
    margin-right: 10px;
}

.btn-google i {
    color: #DB4437;
}

.btn-facebook i {
    color: #4267B2;
}

.btn-social:hover {
    background-color: var(--background-gray);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Footer de la página de registro */
.register-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
    color: var(--text-medium);
}

.login-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.login-link:hover {
    color: var(--primary-green-dark);
    text-decoration: underline;
}

/* Lado derecho - Información */
.register-right {
    flex: 0.8;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.register-right::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
    border-radius: 50%;
}

.register-right-content {
    position: relative;
    z-index: 1;
    max-width: 400px;
    text-align: center;
}

.register-right-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 600;
}

.register-right-content p {
    margin-bottom: 30px;
    font-size: 16px;
    opacity: 0.9;
}

.register-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 10px;
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.feature-item i {
    font-size: 24px;
    margin-right: 15px;
}

.feature-item span {
    font-weight: 500;
}

.register-footer-bottom {
    text-align: center;
    margin-top: 20px;
    color: var(--text-light);
    font-size: 12px;
}

/* Animación de carga */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    position: absolute;
    right: 20px;
}

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

/* Estilos para modo oscuro */
.dark-mode {
    background-color: var(--background-dark);
}

.dark-mode .register-box {
    background-color: var(--background-dark);
}

.dark-mode .register-header h1,
.dark-mode .form-group label {
    color: white;
}

.dark-mode .header-description,
.dark-mode .register-footer,
.dark-mode .register-footer-bottom {
    color: #aaa;
}

.dark-mode .input-with-icon input {
    background-color: #222;
    border-color: #444;
    color: white;
}

.dark-mode .input-with-icon input:focus {
    border-color: var(--primary-green);
}

.dark-mode .divider {
    color: #777;
}

.dark-mode .divider::before,
.dark-mode .divider::after {
    border-color: #444;
}

.dark-mode .btn-social {
    background-color: #222;
    border-color: #444;
    color: #ddd;
}

.dark-mode .checkmark {
    background-color: #222;
    border-color: #444;
}

.dark-mode .password-requirements {
    background-color: #222;
}

.dark-mode .password-requirements p {
    color: #ddd;
}

.dark-mode .password-requirements li:not(.met) {
    color: #888;
}

.dark-mode .checkbox-container {
    color: #ddd;
}

/* Mensajes de error */
.error-message {
    color: var(--error-color);
    font-size: 13px;
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 992px) {
    .register-box {
        flex-direction: column;
        max-width: 600px;
        margin: 0 auto;
    }

    .register-right {
        display: none;
    }

    .register-form {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 576px) {
    .register-left {
        padding: 20px;
    }

    .register-header h1 {
        font-size: 22px;
    }

    .social-register {
        flex-direction: column;
    }

    .btn, 
    .input-with-icon input {
        padding: 12px;
        padding-left: 40px;
    }
} 