/* Neuromarketing Auth Styles */

:root {
    --neuro-primary: #4F46E5;
    /* Trustworthy Blue/Indigo */
    --neuro-primary-hover: #4338ca;
    --neuro-bg: #f3f4f6;
    --neuro-card-bg: #ffffff;
    --neuro-text: #1f2937;
    --neuro-text-light: #6b7280;
    --neuro-border: #e5e7eb;
    --neuro-success: #10b981;
    --neuro-error: #ef4444;
    --neuro-radius: 12px;
    --neuro-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.neuro-auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.neuro-auth-box {
    background: var(--neuro-card-bg);
    padding: 40px;
    border-radius: var(--neuro-radius);
    box-shadow: var(--neuro-shadow);
    width: 100%;
    max-width: 400px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* Toggle Switch */
.neuro-toggle-container {
    display: flex;
    position: relative;
    background: var(--neuro-bg);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 30px;
}

.neuro-toggle-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--neuro-text-light);
    cursor: pointer;
    z-index: 2;
    transition: color 0.3s ease;
}

.neuro-toggle-btn.active {
    color: var(--neuro-primary);
}

.neuro-toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1;
}

/* Forms */
.neuro-form {
    display: none;
    animation: fadeIn 0.4s ease;
}

.neuro-form.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.neuro-auth-box h2 {
    margin: 0 0 8px;
    color: var(--neuro-text);
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}

.neuro-subtitle {
    margin: 0 0 24px;
    color: var(--neuro-text-light);
    font-size: 14px;
    text-align: center;
}

/* Inputs */
.neuro-input-group {
    position: relative;
    margin-bottom: 20px;
}

.neuro-input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--neuro-text);
}

.neuro-input-group input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    /* Space for icon */
    border: 2px solid var(--neuro-border);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: #fff;
    box-sizing: border-box;
}

.neuro-input-group input:focus {
    border-color: var(--neuro-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.neuro-icon {
    position: absolute;
    right: 12px;
    top: 40px;
    /* Fixed position based on label + input padding */
    color: var(--neuro-text-light);
    font-size: 16px;
    pointer-events: none;
}

.neuro-icon.toggle-password {
    pointer-events: auto;
    cursor: pointer;
}

/* Actions */
.neuro-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 13px;
}

.neuro-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--neuro-text-light);
    user-select: none;
}

.neuro-checkbox input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--neuro-primary);
}

.neuro-checkbox .terms-text {
    font-size: 13px;
}

.neuro-checkbox .terms-text a {
    color: var(--neuro-primary);
    text-decoration: none;
    font-weight: 500;
}

.neuro-checkbox .terms-text a:hover {
    text-decoration: underline;
}

.neuro-forgot-pass {
    color: var(--neuro-primary);
    text-decoration: none;
    font-weight: 500;
}

.neuro-forgot-pass:hover {
    text-decoration: underline;
}

/* Register form specific - center the checkbox */
#neuro-register-form .neuro-actions {
    justify-content: flex-start;
}

/* Submit Button */
.neuro-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--neuro-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.neuro-submit-btn:hover {
    background: var(--neuro-primary-hover);
}

.neuro-submit-btn:active {
    transform: scale(0.98);
}

.neuro-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Messages */
.neuro-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.neuro-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.neuro-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Loading Spinner */
.btn-loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

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

.neuro-submit-btn.loading .btn-text {
    display: none;
}

.neuro-submit-btn.loading .btn-loader {
    display: block;
    margin: 0;
}