﻿
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
        }

        body {
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            background: linear-gradient(135deg, #4a1942 0%, #8b1a4a 25%, #c70039 50%, #ff6b35 75%, #ffc300 100%);
            background-size: 400% 400%;
            animation: gradientShift 15s ease infinite;
            padding: 20px;
            position: relative;
            overflow: hidden;
        }

        @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        body::before, body::after {
            content: '';
            position: absolute;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.08);
            pointer-events: none;
        }

        body::before {
            width: 500px;
            height: 500px;
            top: -200px;
            right: -150px;
        }

        body::after {
            width: 400px;
            height: 400px;
            bottom: -150px;
            left: -100px;
        }

        .register-container {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            border-radius: 24px;
            padding: 45px 40px;
            width: 100%;
            max-width: 480px;
            box-shadow: 0 25px 60px rgba(74, 25, 66, 0.4);
            position: relative;
            z-index: 1;
            animation: slideUp 0.7s ease-out;
            max-height: 95vh;
            overflow-y: auto;
        }

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

        .register-container::-webkit-scrollbar-track {
            background: transparent;
        }

        .register-container::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #c70039, #ff6b35);
            border-radius: 10px;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(40px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .logo-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 25px;
        }

        .logo-icon {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: linear-gradient(135deg, #4a1942, #c70039, #ff6b35, #ffc300);
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 10px 30px rgba(199, 0, 57, 0.3);
            margin-bottom: 12px;
            animation: pulse 3s ease-in-out infinite;
            overflow: hidden;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); box-shadow: 0 10px 30px rgba(199, 0, 57, 0.3); }
            50% { transform: scale(1.05); box-shadow: 0 15px 40px rgba(199, 0, 57, 0.5); }
        }

        .logo-icon svg {
            width: 50px;
            height: 50px;
        }

        .logo-icon img {
            width: 58px;
            height: 58px;
            object-fit: contain;
        }

        .company-name {
            font-size: 20px;
            font-weight: 700;
            background: linear-gradient(135deg, #4a1942, #c70039, #ff6b35);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: 1px;
        }

        .company-tagline {
            font-size: 11px;
            color: #888;
            margin-top: 3px;
            letter-spacing: 2px;
            text-transform: uppercase;
        }

        .register-title {
            text-align: center;
            font-size: 22px;
            font-weight: 700;
            color: #4a1942;
            margin-bottom: 6px;
        }

        .register-subtitle {
            text-align: center;
            font-size: 12px;
            color: #888;
            margin-bottom: 25px;
        }

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

        .form-group label {
            display: block;
            font-size: 12px;
            font-weight: 600;
            color: #4a1942;
            margin-bottom: 6px;
        }

        .input-wrapper {
            position: relative;
        }

        .input-wrapper svg.field-icon {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            width: 18px;
            height: 18px;
            color: #c70039;
            pointer-events: none;
        }

        .form-control {
            width: 100%;
            padding: 12px 14px 12px 42px;
            border: 2px solid #e8d5e0;
            border-radius: 12px;
            font-size: 13px;
            font-family: 'Poppins', sans-serif;
            transition: all 0.3s ease;
            background: #faf5f7;
            color: #333;
        }

        .form-control:focus {
            outline: none;
            border-color: #c70039;
            background: #fff;
            box-shadow: 0 0 0 4px rgba(199, 0, 57, 0.1);
        }

        .form-control::placeholder {
            color: #aaa;
        }

        .password-toggle {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            cursor: pointer;
            color: #c70039;
            padding: 5px;
        }

        .password-toggle svg {
            width: 18px;
            height: 18px;
        }

        .role-selector {
            display: flex;
            gap: 10px;
            margin-bottom: 18px;
        }

        .role-option {
            flex: 1;
            position: relative;
        }

        .role-option input[type="radio"] {
            position: absolute;
            opacity: 0;
            pointer-events: none;
        }

        .role-label {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 12px 8px;
            border: 2px solid #e8d5e0;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            background: #faf5f7;
            text-align: center;
        }

        .role-label svg {
            width: 24px;
            height: 24px;
            margin-bottom: 5px;
            color: #8b1a4a;
            transition: all 0.3s ease;
        }

        .role-label span {
            font-size: 12px;
            font-weight: 600;
            color: #4a1942;
        }

        .role-option input[type="radio"]:checked + .role-label {
            background: linear-gradient(135deg, #c70039, #ff6b35);
            border-color: transparent;
            box-shadow: 0 8px 20px rgba(199, 0, 57, 0.3);
        }

        .role-option input[type="radio"]:checked + .role-label svg,
        .role-option input[type="radio"]:checked + .role-label span {
            color: white;
        }

        .role-label:hover {
            border-color: #c70039;
            transform: translateY(-2px);
        }

        .register-btn {
            width: 100%;
            padding: 14px;
            border: none;
            border-radius: 12px;
            background: linear-gradient(135deg, #4a1942, #8b1a4a, #c70039, #ff6b35);
            background-size: 200% 200%;
            color: white;
            font-size: 14px;
            font-weight: 700;
            font-family: 'Poppins', sans-serif;
            cursor: pointer;
            transition: all 0.4s ease;
            letter-spacing: 1px;
            text-transform: uppercase;
            box-shadow: 0 10px 25px rgba(199, 0, 57, 0.3);
            animation: btnGradient 4s ease infinite;
            margin-top: 5px;
        }

        @keyframes btnGradient {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .register-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 35px rgba(199, 0, 57, 0.5);
        }

        .register-btn:active {
            transform: translateY(0);
        }

        .register-btn:disabled {
            opacity: 0.7;
            cursor: not-allowed;
            transform: none;
        }

        .divider {
            display: flex;
            align-items: center;
            margin: 20px 0 15px;
        }

        .divider::before, .divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: linear-gradient(to right, transparent, #e8d5e0, transparent);
        }

        .divider span {
            padding: 0 15px;
            font-size: 11px;
            color: #aaa;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .login-link {
            text-align: center;
            font-size: 12px;
            color: #666;
        }

        .login-link a {
            color: #c70039;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .login-link a:hover {
            color: #4a1942;
            text-decoration: underline;
        }

        .password-strength {
            display: flex;
            gap: 4px;
            margin-top: 6px;
        }

        .strength-bar {
            flex: 1;
            height: 4px;
            background: #e8d5e0;
            border-radius: 2px;
            transition: all 0.3s ease;
        }

        .strength-bar.active.weak { background: #dc3545; }
        .strength-bar.active.medium { background: #ffc300; }
        .strength-bar.active.strong { background: #28a745; }

        .strength-text {
            font-size: 10px;
            margin-top: 3px;
            color: #888;
            text-align: right;
        }

        .toast {
            position: fixed;
            top: 30px;
            left: 50%;
            transform: translateX(-50%) translateY(-100px);
            background: white;
            padding: 14px 22px;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            display: flex;
            align-items: center;
            gap: 10px;
            z-index: 1000;
            transition: transform 0.4s ease;
            border-left: 4px solid #c70039;
            font-size: 13px;
        }

        .toast.show {
            transform: translateX(-50%) translateY(0);
        }

        .toast.success { border-left-color: #28a745; }
        .toast.error { border-left-color: #dc3545; }

        @media (max-width: 480px) {
            .register-container {
                padding: 30px 22px;
            }

            .company-name {
                font-size: 18px;
            }

            .register-title {
                font-size: 19px;
            }
        }
    

/* Fin de estilos */


/* ============================================================
   Enlaces legales (login, registro y restablecer)
   ============================================================ */
.legal-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 8px;
    margin-top: 14px;
    font-size: 11px;
    line-height: 1.5;
    color: #7a6a76;
}

.legal-footer-links a {
    color: #8b1a4a;
    text-decoration: none;
    font-weight: 600;
}

.legal-footer-links a:hover {
    text-decoration: underline;
}

.legal-footer-links span {
    opacity: 0.55;
}


/* ============================================================
   Aceptación de documentos legales en el registro
   ============================================================ */
.legal-acceptance {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 4px 0 16px;
    padding: 12px 14px;
    background: rgba(74, 25, 66, 0.04);
    border: 1px solid rgba(74, 25, 66, 0.12);
    border-radius: 12px;
}

.legal-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    line-height: 1.55;
    color: #5a4657;
    cursor: pointer;
}

.legal-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: #c70039;
    flex-shrink: 0;
    cursor: pointer;
}

.legal-check a {
    color: #8b1a4a;
    font-weight: 600;
    text-decoration: underline;
}

.legal-check a:hover {
    color: #c70039;
}
