/* ═══════════════════════════════════════════════════════════
   THE AROMA TRACE - DARK & MINIMAL RESET STYLES
═══════════════════════════════════════════════════════════ */

:root {
    --ar-text-main: #ffffff;
    --ar-text-muted: hsl(0, 0%, 100%);
    --ar-border: #ffffff;
    --ar-border-focus: #ffffff;
    --ar-error-text: #fca5a5;
    --ar-success-text: #FCFF8C;
    --ar-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ar-wrap-dark {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    color: var(--ar-text-main) !important;
    font-family: inherit; /* Heredar del tema actual */
    padding: 20px 0;
}

/* Titles */
.ar-header {
    margin-bottom: 32px;
}

.ar-title {
    font-size: 28px !important;
    font-weight: 400 !important;
    margin-bottom: 8px !important;
    color: var(--ar-text-main) !important;
    font-family: "Playfair Display", "Georgia", serif !important;
    letter-spacing: -0.5px;
}

.ar-subtitle, .ar-small-text {
    font-size: 14px !important;
    color: var(--ar-text-muted) !important;
    line-height: 1.5;
    font-family: "Inter", "Helvetica", sans-serif;
}

.ar-small-text strong {
    color: var(--ar-text-main) !important;
}

/* Steps */
.ar-step {
    opacity: 0;
    transform: translateY(10px);
    transition: var(--ar-transition);
}
.ar-step.active {
    opacity: 1;
    transform: translateY(0);
}

/* Form Fields */
.ar-form {
    text-align: left;
    font-family: "Inter", "Helvetica", sans-serif;
}

.ar-field {
    margin-bottom: 24px;
    position: relative;
}

.ar-field label {
    display: block !important;
    font-size: 12px !important;
    color: var(--ar-text-main) !important;
    margin-bottom: 8px !important;
    font-weight: 500 !important;
}

.ar-wrap-dark input[type="email"],
.ar-wrap-dark input[type="text"],
.ar-wrap-dark input[type="password"] {
    width: 100% !important;
    padding: 8px 0 !important;
    font-size: 14px !important;
    color: var(--ar-text-main) !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--ar-border) !important;
    border-radius: 0 !important;
    outline: none !important;
    transition: var(--ar-transition);
    box-shadow: none !important;
}

.ar-wrap-dark input[type="email"]:focus,
.ar-wrap-dark input[type="text"]:focus,
.ar-wrap-dark input[type="password"]:focus {
    border-bottom-color: var(--ar-border-focus) !important;
}

.ar-wrap-dark input::placeholder {
    color: transparent !important;
}

/* Eye Toggle */
.ar-eye {
    position: absolute;
    right: 0;
    bottom: 8px;
    background: none !important;
    border: none !important;
    color: var(--ar-text-muted) !important;
    cursor: pointer;
    padding: 0 !important;
    transition: var(--ar-transition);
}
.ar-eye:hover {
    color: var(--ar-text-main) !important;
}

/* Buttons */
.ar-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.ar-modal-content {
    background: transparent;
    border: none;
    padding: 0;
    max-width: 100%;
    width: auto;
}

.ar-wrap-dark .ar-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 13px 51px !important;
    background: transparent !important;
    color: #fff !important;
    border: 1px solid #fff !important;
    border-radius: 5px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 18.2px !important;
    cursor: pointer !important;
    transition: var(--ar-transition);
    margin-top: 43px !important;
    min-width: 140px !important;
    position: relative !important;
    height: auto !important;
}

.ar-wrap-dark .ar-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1) !important;
}

.ar-wrap-dark .ar-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.ar-btn-loader {
    position: absolute;
    animation: spin 1s linear infinite;
}

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

.ar-wrap-dark .ar-link-btn {
    background: none !important;
    border: none !important;
    color: var(--ar-text-muted) !important;
    font-size: 13px !important;
    margin-top: 24px !important;
    cursor: pointer !important;
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
    transition: var(--ar-transition);
    padding: 0 !important;
}
.ar-wrap-dark .ar-link-btn:hover {
    color: var(--ar-text-main) !important;
}

/* Messages */
.ar-msg {
    padding: 12px 16px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    margin-bottom: 24px !important;
    text-align: left !important;
    border-left: 3px solid !important;
    font-family: "Inter", "Helvetica", sans-serif !important;
}

.ar-msg-error {
    background: rgba(220, 38, 38, 0.1) !important;
    color: var(--ar-error-text) !important;
    border-left-color: #dc2626 !important;
}

.ar-msg-success {
    background: rgba(22, 101, 52, 0.1) !important;
    color: var(--ar-success-text) !important;
    border-left-color: #FCFF8C !important;
}

/* Success State */
.ar-success-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 16px;
}
.ar-success-icon circle {
    stroke-dasharray: 176;
    stroke-dashoffset: 176;
    animation: drawCircle 0.6s ease forwards;
}
.ar-success-icon polyline {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: drawCheck 0.4s ease 0.4s forwards;
}
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

.ar-done-text {
    font-size: 14px !important;
    color: var(--ar-text-main) !important;
    text-align: center !important;
}

.ar-footer-link {
  
    display: flex;
    align-items: center !important;
    margin-top: 20px !important;
}

.ar-wrap-dark .ar-back {
    color: fff !important;
    font-size: 13px !important;
    text-decoration: none !important;
    transition: var(--ar-transition);
    
}
.ar-wrap-dark .ar-back:hover {
    color: var(--ar-text-main) !important;
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
}
