body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #1a1a2e;
    color: #f0f0f0;
    margin: 0;
    padding: 2rem;
    background-image: linear-gradient(135deg, rgba(14, 14, 30, 0.9) 0%, rgba(42, 42, 74, 0.9) 50%, rgba(14, 14, 30, 0.9) 100%), url('https://i.postimg.cc/VkBS2MFp/img2-wallspic-com-angulo-modo-monocromo-fila-monocromo-el-arte-abstracto-2618x1636.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Contenedor principal */
.container {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo-corporativo {
    max-width: 250px;
    height: auto;
}

.register-container {
    background-color: #33334d;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 500px;
}

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

.logo h1 {
    color: #7B68EE;
    margin: 0;
    font-size: 2.5em;
    font-weight: 300;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #f0f0f0;
    font-weight: 500;
    font-size: 1.1rem;
}

input[type="text"], input[type="email"], input[type="password"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #666688;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    background: #555577;
    color: #f0f0f0;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus {
    border-color: #7B68EE;
    outline: none;
    box-shadow: 0 0 0 3px rgba(123, 104, 238, 0.1);
}

/* Estilos para checkbox */
input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
    accent-color: #7B68EE;
}

/* Estilos para términos y condiciones */
.terms-label {
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.terms-label:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(123, 104, 238, 0.3);
}

.terms-label:has(input:checked) {
    background: rgba(123, 104, 238, 0.1);
    border-color: rgba(123, 104, 238, 0.5);
}

.terms-text {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #f0f0f0;
}

.required-mark {
    color: #ff4444;
    font-weight: bold;
    margin-left: 4px;
}

/* Estilos para enlaces en el formulario */
.form-group a {
    color: #7B68EE;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-group a:hover {
    color: #6A5ACD;
    text-decoration: underline;
}

/* Estilos para el indicador de fortaleza de contraseña */
.password-strength {
    margin-top: 10px;
}

.strength-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.strength-fill.very-weak {
    background: #ff4444;
    width: 20%;
}

.strength-fill.weak {
    background: #ff8800;
    width: 40%;
}

.strength-fill.medium {
    background: #ffbb33;
    width: 60%;
}

.strength-fill.strong {
    background: #00C851;
    width: 80%;
}

.strength-fill.very-strong {
    background: #007E33;
    width: 100%;
}

.strength-text {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: #aaa;
}

.strength-text.very-weak {
    color: #ff4444;
}

.strength-text.weak {
    color: #ff8800;
}

.strength-text.medium {
    color: #ffbb33;
}

.strength-text.strong {
    color: #00C851;
}

.strength-text.very-strong {
    color: #007E33;
}

.strength-requirements {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 0.8rem;
    color: #aaa;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.requirement i {
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.requirement.valid {
    color: #00C851;
}

.requirement.valid i {
    color: #00C851;
}

.requirement.invalid {
    color: #ff4444;
}

.requirement.invalid i {
    color: #ff4444;
}

/* Estilos para el indicador de disponibilidad de usuario */
.username-status {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.status-icon i {
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.status-text {
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Estados del indicador */
.username-status.checking {
    color: #ffbb33;
}

.username-status.checking .status-icon {
    background: rgba(255, 187, 51, 0.1);
}

.username-status.checking .status-icon i {
    color: #ffbb33;
    animation: spin 1s linear infinite;
}

.username-status.available {
    color: #00C851;
}

.username-status.available .status-icon {
    background: rgba(0, 200, 81, 0.1);
}

.username-status.available .status-icon i {
    color: #00C851;
}

.username-status.unavailable {
    color: #ff4444;
}

.username-status.unavailable .status-icon {
    background: rgba(255, 68, 68, 0.1);
}

.username-status.unavailable .status-icon i {
    color: #ff4444;
}

.username-status.invalid {
    color: #ff8800;
}

.username-status.invalid .status-icon {
    background: rgba(255, 136, 0, 0.1);
}

.username-status.invalid .status-icon i {
    color: #ff8800;
}

small {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-top: 5px;
    display: block;
}

.btn-register {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #7B68EE 0%, #6A5ACD 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(123, 104, 238, 0.3);
}

.btn-register::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-register:hover::before {
    left: 100%;
}

.btn-register:hover {
    background: linear-gradient(135deg, #6A5ACD 0%, #5A4ACD 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(123, 104, 238, 0.4);
}

.btn-register:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(123, 104, 238, 0.3);
}

.btn-register:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-register i {
    font-size: 20px;
}

.btn-register span {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.message {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.message.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.message.error {
    background: rgba(244, 67, 54, 0.2);
    color: #F44336;
    border: 1px solid rgba(244, 67, 54, 0.4);
}

.message.info {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
    border: 1px solid rgba(33, 150, 243, 0.4);
}

.loading {
    display: none;
    text-align: center;
    margin-top: 15px;
    color: #f0f0f0;
}

.links {
    margin-top: 30px;
    text-align: center;
}

.link-group {
    margin-bottom: 15px;
}

.link-group:last-child {
    margin-bottom: 0;
}

.links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 5px;
}

.links a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.links a i {
    font-size: 16px;
    opacity: 0.8;
}

/* Estilos específicos para cada tipo de enlace */
.links a[href*="login"] {
    color: #98FB98 !important;
}

.links a[href*="login"]:hover {
    background: rgba(152, 251, 152, 0.1) !important;
    border-color: rgba(152, 251, 152, 0.3) !important;
}

.links a[href*="index"] {
    color: #87CEEB !important;
}

.links a[href*="index"]:hover {
    background: rgba(135, 206, 235, 0.1) !important;
    border-color: rgba(135, 206, 235, 0.3) !important;
}

.info-box {
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.info-box h4 {
    margin: 0 0 15px 0;
    color: #2196F3;
    font-size: 1.2rem;
}

.info-box p {
    margin: 10px 0;
    color: #f0f0f0;
}

.info-box ul {
    margin: 10px 0;
    padding-left: 20px;
}

.info-box li {
    margin: 5px 0;
    color: #f0f0f0;
}

/* Estilos para el enlace de login */
.login-link {
    margin-top: 30px;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.login-link a {
    color: #7B68EE !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 24px;
    border-radius: 25px;
    background: linear-gradient(135deg, #7B68EE 0%, #6A5ACD 100%);
    border: 2px solid rgba(123, 104, 238, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
    box-shadow: 0 4px 15px rgba(123, 104, 238, 0.3);
    color: #ffffff !important;
}

.login-link a:hover {
    background: linear-gradient(135deg, #6A5ACD 0%, #5A4ACD 100%);
    border-color: rgba(123, 104, 238, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 104, 238, 0.4);
}

.login-link a:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(123, 104, 238, 0.2);
}

.login-link a i {
    font-size: 16px;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    .register-container {
        padding: 2rem;
        max-width: 100%;
    }
    
    .logo h1 {
        font-size: 2em;
    }
    
    .logo-corporativo {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .register-container {
        padding: 2rem;
        margin: 1rem;
    }
    
    .logo h1 {
        font-size: 2em;
    }
    
    .btn-register {
        padding: 16px 20px;
        font-size: 16px;
    }
    
    .links a {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .login-link {
        padding: 15px;
        margin-top: 20px;
    }
    
    .login-link a {
        font-size: 14px;
        padding: 8px 16px;
    }
    
    .strength-requirements {
        grid-template-columns: 1fr;
        gap: 6px;
        font-size: 0.75rem;
    }
    
    .requirement {
        gap: 4px;
    }
    
    .username-status {
        font-size: 0.8rem;
        gap: 6px;
    }
    
    .status-icon {
        width: 18px;
        height: 18px;
    }
    
    .status-icon i {
        font-size: 0.7rem;
    }
    
    .terms-label {
        padding: 8px;
        gap: 6px;
    }
    
    .terms-text {
        font-size: 0.9rem;
    }
}


