* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f3f4f6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    min-height: 600px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.auth-form-side {
    flex: 1;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 480px;
    position: relative;
}

.auth-visual-side {
    flex: 1;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-logo {
    display: none !important;
}

.auth-logo::before {
    content: "";
    width: 8px;
    height: 8px;
    background: #111827;
    border-radius: 50%;
}

.auth-heading h1 {
    font-size: 30px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.2;
}

.auth-heading p {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.5;
}

.cianbox-form {
    margin-top: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: #111827;
    background: white;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus {
    outline: none;
    border-color: #ffd900;
    box-shadow: 0 0 0 3px rgba(255, 217, 0, 0.1);
}

.form-group input::placeholder {
    color: #9ca3af;
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #ffd900;
    cursor: pointer;
}

.forgot-link {
    font-size: 14px;
    color: #111827;
    text-decoration: none;
    font-weight: 600;
}

.forgot-link:hover {
    color: black;
}

.btn-submit {
    width: 100%;
    padding: 10px 18px;
    background: #ffd900;
    color: #111827;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.btn-submit:hover:not(:disabled) {
    background: #e6c400;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(17, 24, 39, 0.3);
    border-top-color: #111827;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -8px;
    margin-left: -8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-submit.loading .btn-text {
    opacity: 0;
}

.btn-submit.loading .btn-loader {
    display: block;
}

.auth-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}

.auth-footer a {
    color: #111827;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    color: #ffd900;
}

.circle-decoration {
    width: 280px;
    height: 280px;
    background-image: url(http://3.144.160.116/wp-content/uploads/2026/03/logoempenioweb-eg.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 25px 50px -12px white;
}

.form-messages {
    margin-bottom: 16px;
}

.message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Alerta informativa */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Vista previa de datos */
.data-preview {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.data-preview h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 12px;
    font-weight: 600;
}

.data-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.data-row:last-child {
    border-bottom: none;
}

.data-label {
    color: #6b7280;
}

.data-value {
    color: #111827;
    font-weight: 500;
}

/* Botón back */
.btn-back {
    width: 100%;
    padding: 10px 18px;
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    margin-top: 12px;
}

.btn-back:hover {
    background: #f9fafb;
    color: #374151;
}

/* Pasos del formulario */
.form-step {
    display: block;
}

#step-2-cianbox,
#step-2-manual,
#step-3-manual {
    display: none;
}

.copyright {
    position: absolute;
    bottom: 24px;
    left: 48px;
    font-size: 12px;
    color: #9ca3af;
}

@media (max-width: 768px) {
    .auth-visual-side {
        display: none;
    }
    
    .auth-form-side {
        max-width: 100%;
        padding: 32px 24px;
    }
    
    .copyright {
        position: static;
        margin-top: 24px;
        text-align: center;
    }
}