/* Registration Page Styles */

.registration-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #F0F4F8 0%, #E8EEF5 100%);
}

.registration-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
    background: var(--tienda-white);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
    min-height: 600px;
}

/* Left Side */
.registration-left {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    padding: 40px;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    overflow: hidden;
}

.registration-left::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.registration-left::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
}

.brand-section {
    position: relative;
    z-index: 1;
}

.brand-logo {
    max-width: 150px;
    filter: brightness(0) invert(1);
}

.welcome-text {
    position: relative;
    z-index: 1;
}

.welcome-text h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: antiquewhite;
}

.welcome-text p {
    font-size: 14px;
    opacity: 0.9;
    color: white;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.benefit-item .material-icons {
    font-size: 24px;
    flex-shrink: 0;
}

.benefit-item h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
    color: antiquewhite;
}

.benefit-item p {
    font-size: 12px;
    opacity: 0.8;
}

.pricing-note {
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

.price {
    font-size: 28px;
    font-weight: 700;
}

.per {
    font-size: 14px;
    opacity: 0.8;
}

.trial {
    display: block;
    font-size: 12px;
    margin-top: 4px;
    opacity: 0.8;
}

/* Right Side */
.registration-right {
    padding: 40px;
    overflow-y: auto;
    max-height: 90vh;
}

.registration-form-container h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--tienda-dark);
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 14px;
    color: var(--tienda-gray);
    margin-bottom: 24px;
}

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-error {
    background: var(--tienda-red-light);
    color: var(--tienda-red);
    border: 1px solid #FECACA;
}

.alert-error .material-icons {
    font-size: 18px;
}

.form-section {
    margin-bottom: 24px;
}

.form-section h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--tienda-blue);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--tienda-light-gray);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--tienda-dark);
}

.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--tienda-light-gray);
    border: 2px solid var(--tienda-border);
    border-radius: 10px;
    padding: 0 12px;
    transition: all 0.3s;
}

.input-group:focus-within {
    border-color: var(--tienda-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.input-group .material-icons {
    color: var(--tienda-gray);
    font-size: 18px;
}

.input-group input,
.form-group select {
    flex: 1;
    padding: 12px 0;
    border: none;
    background: transparent;
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    outline: none;
}

.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--tienda-border);
    border-radius: 10px;
    background: var(--tienda-light-gray);
    cursor: pointer;
}

.form-group select:focus {
    border-color: var(--tienda-blue);
    background: white;
}

.btn-toggle-password {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--tienda-gray);
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.btn-toggle-password:hover {
    color: var(--tienda-blue);
    background: var(--tienda-blue-light);
}

.btn-toggle-password .material-icons {
    font-size: 18px;
}

.hint {
    font-size: 11px;
    color: var(--tienda-gray-light);
    margin-top: 4px;
    display: block;
}

.password-match {
    font-size: 11px;
    margin-top: 4px;
    display: block;
}

.password-match.match {
    color: var(--tienda-green);
}

.password-match.no-match {
    color: var(--tienda-red);
}

.terms-group {
    margin: 20px 0;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--tienda-gray);
    position: relative;
    padding-left: 30px;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    left: 0;
    top: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 2px;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid var(--tienda-border);
    border-radius: 5px;
    transition: all 0.2s;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--tienda-blue);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--tienda-blue);
    border-color: var(--tienda-blue);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.terms-text a {
    color: var(--tienda-blue);
    text-decoration: none;
    font-weight: 600;
}

.terms-text a:hover {
    text-decoration: underline;
}

.btn-register {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Quicksand', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-register:hover {
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.login-link {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--tienda-gray);
}

.login-link a {
    color: var(--tienda-blue);
    text-decoration: none;
    font-weight: 700;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Legal Modals */
.legal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.legal-modal.active {
    display: flex;
}

.legal-modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.legal-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--tienda-border);
}

.legal-modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--tienda-dark);
}

.btn-close-modal {
    background: var(--tienda-light-gray);
    border: none;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-modal:hover {
    background: var(--tienda-red);
    color: white;
}

.btn-close-modal .material-icons {
    font-size: 20px;
}

.legal-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.legal-updated {
    font-size: 12px;
    color: var(--tienda-gray-light);
    margin-bottom: 20px;
    font-style: italic;
}

.legal-section {
    margin-bottom: 20px;
}

.legal-section h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--tienda-dark);
    margin-bottom: 8px;
}

.legal-section p {
    font-size: 13px;
    color: var(--tienda-gray);
    line-height: 1.6;
}

.legal-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--tienda-border);
    display: flex;
    justify-content: flex-end;
}

.btn-close {
    padding: 10px 20px;
    background: var(--tienda-blue);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-close:hover {
    background: var(--tienda-blue-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .registration-wrapper {
        grid-template-columns: 1fr;
    }
    
    .registration-left {
        padding: 30px 20px;
        gap: 20px;
    }
    
    .welcome-text h2 {
        font-size: 22px;
    }
    
    .benefits-list {
        gap: 10px;
    }
    
    .benefit-item {
        padding: 10px;
    }
    
    .registration-right {
        padding: 30px 20px;
    }
    
    .legal-modal-content {
        max-height: 90vh;
    }
}