/**
 * OddsEkspert V2 - Authentication Styles
 */

.oe-auth {
    max-width: 400px;
    margin: 0 auto;
}

.oe-auth__tabs {
    display: flex;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--oe-color-border);
}

.oe-auth__tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: var(--oe-color-text);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.oe-auth__tab:hover,
.oe-auth__tab:focus,
.oe-auth__tab:active {
    color: var(--oe-color-primary);
    background: var(--oe-color-primary-tint);
    outline: none;
}

.oe-auth__tab:focus-visible {
    outline: 2px solid var(--oe-color-primary);
    outline-offset: -2px;
}

.oe-auth__tab--active,
.oe-auth__tab--active:hover,
.oe-auth__tab--active:focus,
.oe-auth__tab--active:active {
    color: var(--oe-color-primary);
    background: var(--oe-color-primary-tint);
    border-bottom-color: var(--oe-color-primary);
}

.oe-auth__form {
    background-color: var(--oe-color-white);
    padding: 24px;
    border: 1px solid var(--oe-color-border);
    border-radius: 8px;
}

.oe-auth__form--hidden {
    display: none;
}

.oe-auth__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.oe-auth__field {
    margin-bottom: 16px;
}

.oe-auth__label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.oe-auth__input {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border: 1px solid var(--oe-color-border);
    border-radius: 4px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.oe-auth__input:focus {
    outline: none;
    border-color: var(--oe-color-primary);
}

.oe-auth__input--error {
    border-color: var(--oe-color-error);
}

.oe-auth__error {
    color: var(--oe-color-error);
    font-size: 12px;
    margin-top: 4px;
}

.oe-auth__submit {
    width: 100%;
    padding: 12px;
    background-color: var(--oe-color-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.oe-auth__submit:hover {
    background-color: var(--oe-color-primary-dark);
}

.oe-auth__submit:disabled {
    background-color: var(--oe-color-border);
    cursor: not-allowed;
}

.oe-auth__message {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
    text-align: center;
}

.oe-auth__message--success {
    background-color: var(--oe-color-success-light);
    color: #155724;
}

.oe-auth__message--error {
    background-color: var(--oe-color-error-light);
    color: #721c24;
}

.oe-auth__links {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
}

.oe-auth__link {
    color: var(--oe-color-primary);
    text-decoration: none;
}

.oe-auth__link:hover {
    text-decoration: underline;
}

.oe-auth__divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--oe-color-text-light);
    font-size: 12px;
}

.oe-auth__divider::before,
.oe-auth__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--oe-color-border);
}

.oe-auth__divider::before {
    margin-right: 12px;
}

.oe-auth__divider::after {
    margin-left: 12px;
}

/* Password Strength */
.oe-auth__password-strength {
    height: 4px;
    background-color: var(--oe-color-border);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.oe-auth__password-strength-bar {
    height: 100%;
    transition: width 0.3s, background-color 0.3s;
}

.oe-auth__password-strength-bar--weak {
    width: 33%;
    background-color: var(--oe-color-error);
}

.oe-auth__password-strength-bar--medium {
    width: 66%;
    background-color: var(--oe-color-warning);
}

.oe-auth__password-strength-bar--strong {
    width: 100%;
    background-color: var(--oe-color-success);
}

/* Confirmation Checkboxes (age, ROFUS) */
.oe-auth__checkbox {
    display: block;
    margin-bottom: 12px;
}

.oe-auth__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    color: var(--oe-color-text);
}

.oe-auth__checkbox-input {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    margin: 2px 0 0 0;
    cursor: pointer;
    accent-color: var(--oe-color-primary);
    flex-shrink: 0;
}

.oe-auth__checkbox-text {
    flex: 1;
}

/* Remember Me */
.oe-auth__remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.oe-auth__remember input {
    width: 16px;
    height: 16px;
}

/* Loading State */
.oe-auth__loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: oe-spin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes oe-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ================================================
   Modal-specific Auth Styles
   Higher specificity to override Elementor
   ================================================ */

/* Reset Elementor button styles */
.oe-slidemenu-panel .oe-auth--modal button,
.oe-slidemenu-panel .oe-auth--modal button[type="button"],
.oe-slidemenu-panel .oe-auth--modal button[type="submit"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    font-family: inherit !important;
}

/* Reset Elementor form styles */
.oe-slidemenu-panel .oe-auth--modal input,
.oe-slidemenu-panel .oe-auth--modal input[type="text"],
.oe-slidemenu-panel .oe-auth--modal input[type="email"],
.oe-slidemenu-panel .oe-auth--modal input[type="password"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    font-family: inherit !important;
    height: auto !important;
    min-height: 0 !important;
}

.oe-slidemenu-panel .oe-auth.oe-auth--modal {
    max-width: 100% !important;
    padding: 0 1.25rem 1.25rem !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Modal tabs - pill-style with smooth transitions */
.oe-slidemenu-panel .oe-auth--modal .oe-auth__tabs {
    display: flex !important;
    flex-direction: row !important;
    gap: 0 !important;
    margin: 0 0 1.5rem 0 !important;
    padding: 4px !important;
    background: var(--oe-color-bg) !important;
    border-radius: 10px !important;
    border: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.oe-slidemenu-panel .oe-auth--modal .oe-auth__tab {
    flex: 1 1 50% !important;
    padding: 0.625rem 1rem !important;
    border: none !important;
    border-radius: 8px !important;
    background: transparent !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: var(--oe-color-text-light) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    text-align: center !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
    outline: none !important;
}

.oe-slidemenu-panel .oe-auth--modal .oe-auth__tab:hover {
    color: var(--oe-color-text-dark) !important;
    background: rgba(255, 255, 255, 0.5) !important;
}

.oe-slidemenu-panel .oe-auth--modal .oe-auth__tab.oe-auth__tab--active,
.oe-slidemenu-panel .oe-auth--modal .oe-auth__tab--active {
    background: var(--oe-color-white) !important;
    color: var(--oe-color-primary-lighter) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Panel transitions */
.oe-slidemenu-panel .oe-auth--modal .oe-auth__panels {
    position: relative !important;
    width: 100% !important;
}

.oe-slidemenu-panel .oe-auth--modal .oe-auth__panel {
    display: none !important;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.oe-slidemenu-panel .oe-auth--modal .oe-auth__panel.oe-auth__panel--active,
.oe-slidemenu-panel .oe-auth--modal .oe-auth__panel--active {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
}

/* Modal form styling */
.oe-slidemenu-panel .oe-auth--modal .oe-auth__form {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.oe-slidemenu-panel .oe-auth--modal .oe-auth__field {
    margin-bottom: 1rem !important;
    padding: 0 !important;
    width: 100% !important;
}

.oe-slidemenu-panel .oe-auth--modal .oe-auth__label {
    display: block !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    color: var(--oe-color-text-dark) !important;
    margin-bottom: 0.375rem !important;
    padding: 0 !important;
}

.oe-slidemenu-panel .oe-auth--modal .oe-auth__input {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    border: 1px solid var(--oe-color-border) !important;
    border-radius: 8px !important;
    font-size: 0.9375rem !important;
    line-height: 1.4 !important;
    background: var(--oe-color-white) !important;
    color: var(--oe-color-text-dark) !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.oe-slidemenu-panel .oe-auth--modal .oe-auth__input:focus {
    border-color: var(--oe-color-primary-lighter) !important;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1) !important;
    outline: none !important;
}

.oe-slidemenu-panel .oe-auth--modal .oe-auth__input.oe-auth__input--error,
.oe-slidemenu-panel .oe-auth--modal .oe-auth__input--error {
    border-color: var(--oe-color-error) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.oe-slidemenu-panel .oe-auth--modal .oe-auth__submit {
    width: 100% !important;
    padding: 0.75rem 1.5rem !important;
    background: var(--oe-color-primary-lighter) !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    cursor: pointer !important;
    transition: background-color 0.2s, transform 0.1s !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
}

.oe-slidemenu-panel .oe-auth--modal .oe-auth__submit:hover {
    background: var(--oe-color-primary-light) !important;
    color: #fff !important;
}

.oe-slidemenu-panel .oe-auth--modal .oe-auth__submit:active {
    transform: translateY(1px) !important;
}

.oe-slidemenu-panel .oe-auth--modal .oe-auth__submit:disabled {
    background: var(--oe-color-text-muted) !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.oe-slidemenu-panel .oe-auth--modal .oe-auth__actions {
    margin-top: 1.25rem !important;
    padding: 0 !important;
}

.oe-slidemenu-panel .oe-auth--modal .oe-auth__links {
    margin-top: 1rem !important;
    text-align: center !important;
    padding: 0 !important;
}

.oe-slidemenu-panel .oe-auth--modal .oe-auth__forgot-password {
    font-size: 0.8125rem !important;
    color: var(--oe-color-text-light) !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
}

.oe-slidemenu-panel .oe-auth--modal .oe-auth__forgot-password:hover {
    color: var(--oe-color-primary-lighter) !important;
    text-decoration: underline !important;
}

.oe-slidemenu-panel .oe-auth--modal .oe-auth__message {
    margin-bottom: 1rem !important;
    padding: 0.75rem 1rem !important;
    border-radius: 8px !important;
    font-size: 0.875rem !important;
}

.oe-slidemenu-panel .oe-auth--modal .oe-auth__message:empty {
    display: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.oe-slidemenu-panel .oe-auth--modal .oe-auth__description {
    font-size: 0.875rem !important;
    color: var(--oe-color-text-light) !important;
    margin-bottom: 1rem !important;
    line-height: 1.5 !important;
    padding: 0 !important;
}

.oe-slidemenu-panel .oe-auth--modal .oe-auth__back-to-login {
    width: 100% !important;
    margin-top: 0.75rem !important;
    padding: 0.625rem 1rem !important;
    background: var(--oe-color-bg) !important;
    border: 1px solid var(--oe-color-border) !important;
    border-radius: 8px !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: var(--oe-color-text-dark) !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1.4 !important;
}

.oe-slidemenu-panel .oe-auth--modal .oe-auth__back-to-login:hover {
    background: var(--oe-color-border) !important;
}

/* Password strength in modal */
.oe-slidemenu-panel .oe-auth--modal .oe-auth__password-strength {
    height: 3px !important;
    margin-top: 0.5rem !important;
    border-radius: 2px !important;
    background: var(--oe-color-border) !important;
}

