/**
 * OtterWP Agency Hub - Auth & Registration Block & Shortcode Styles
 */

/* Form Wrapper & Card Container */
.oef-auth-card-wrapper {
    width: 100%;
    margin: 2rem 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.oef-auth-card-wrapper.oef-align-left {
    display: flex;
    justify-content: flex-start;
}

.oef-auth-card-wrapper.oef-align-center {
    display: flex;
    justify-content: center;
}

.oef-auth-card-wrapper.oef-align-right {
    display: flex;
    justify-content: flex-end;
}

.oef-auth-form-card {
    width: 100%;
    max-width: 460px;
    box-sizing: border-box;
    padding: 32px 30px;
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
    text-align: left;
}

/* Dark Theme (Default) */
.oef-auth-theme-dark .oef-auth-form-card {
    background: #141824;
    border: 1px solid #232a3e;
    color: #f1f5f9;
}

.oef-auth-theme-dark .oef-auth-heading {
    color: #ffffff;
}

.oef-auth-theme-dark .oef-auth-subheading {
    color: #94a3b8;
}

.oef-auth-theme-dark .oef-auth-label {
    color: #94a3b8;
}

.oef-auth-theme-dark .oef-auth-input {
    background: #0d111a;
    border: 1px solid #28334e;
    color: #ffffff;
}

.oef-auth-theme-dark .oef-auth-input:focus {
    border-color: #ff5c6a;
    box-shadow: 0 0 0 3px rgba(255, 92, 106, 0.22);
    outline: none;
}

.oef-auth-theme-dark .oef-auth-divider {
    color: #64748b;
}

.oef-auth-theme-dark .oef-auth-footer-link {
    color: #ff8058;
}

/* Light Theme */
.oef-auth-theme-light .oef-auth-form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.oef-auth-theme-light .oef-auth-heading {
    color: #0f172a;
}

.oef-auth-theme-light .oef-auth-subheading {
    color: #64748b;
}

.oef-auth-theme-light .oef-auth-label {
    color: #475569;
}

.oef-auth-theme-light .oef-auth-input {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}

.oef-auth-theme-light .oef-auth-input:focus {
    border-color: #ff5c6a;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 92, 106, 0.2);
    outline: none;
}

.oef-auth-theme-light .oef-auth-divider {
    color: #94a3b8;
}

.oef-auth-theme-light .oef-auth-footer-link {
    color: #ff5c6a;
}

/* Header */
.oef-auth-header {
    margin-bottom: 22px;
    text-align: center;
}

.oef-auth-heading {
    margin: 0 0 6px 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.oef-auth-subheading {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
}

/* Social Buttons Stack */
.oef-social-auth-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
    width: 100%;
}

.oef-google-signin-btn,
.oef-microsoft-signin-btn {
    width: 100% !important;
    height: 44px !important;
    padding: 0 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    cursor: pointer !important;
    border-radius: 8px !important;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    border: 1px solid transparent !important;
}

.oef-google-signin-btn svg,
.oef-microsoft-signin-btn svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* Themes for Social Buttons */
.oef-google-theme-filled_black {
    background-color: #1a1e2b !important;
    color: #ffffff !important;
    border-color: #2c354e !important;
}
.oef-google-theme-filled_black:hover {
    background-color: #242c42 !important;
    border-color: #4285f4 !important;
    box-shadow: 0 3px 12px rgba(66, 133, 244, 0.2);
}

.oef-google-theme-filled_blue {
    background-color: #1a73e8 !important;
    color: #ffffff !important;
    border-color: #1a73e8 !important;
}
.oef-google-theme-filled_blue:hover {
    background-color: #1557b0 !important;
    box-shadow: 0 3px 12px rgba(26, 115, 232, 0.35);
}

.oef-google-theme-outline {
    background-color: #ffffff !important;
    color: #3c4043 !important;
    border-color: #dadce0 !important;
}
.oef-google-theme-outline:hover {
    background-color: #f8f9fa !important;
    border-color: #4285f4 !important;
    box-shadow: 0 3px 12px rgba(66, 133, 244, 0.15);
}

.oef-microsoft-signin-btn {
    background: #1a1e2b !important;
    color: #ffffff !important;
    border-color: #2c354e !important;
}
.oef-microsoft-signin-btn:hover {
    background: #242c42 !important;
    border-color: #00a4ef !important;
    box-shadow: 0 3px 12px rgba(0, 164, 239, 0.25) !important;
}

.oef-auth-theme-light .oef-google-theme-filled_black {
    background-color: #1f2937 !important;
    border-color: #1f2937 !important;
}
.oef-auth-theme-light .oef-microsoft-signin-btn {
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: #cbd5e1 !important;
}
.oef-auth-theme-light .oef-microsoft-signin-btn:hover {
    background: #f8fafc !important;
    border-color: #00a4ef !important;
}

/* Divider */
.oef-auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 18px 0;
    font-size: 11px;
    letter-spacing: 1.2px;
    font-weight: 700;
    text-transform: uppercase;
}

.oef-auth-divider::before,
.oef-auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.oef-auth-divider span {
    padding: 0 12px;
}

/* Form Fields */
.oef-auth-form-group {
    margin-bottom: 15px;
}

.oef-auth-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.oef-auth-input {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.15s ease;
}

.oef-auth-password-wrap {
    position: relative;
    width: 100%;
}

.oef-auth-password-wrap .oef-auth-input {
    padding-right: 42px;
}

.oef-toggle-password-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.15s ease;
    color: inherit;
}

.oef-toggle-password-btn:hover {
    opacity: 1;
}

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

/* Submit Button */
.oef-auth-submit-btn {
    width: 100%;
    display: block;
    padding: 13px 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff5c6a 0%, #ff8058 100%);
    border: none;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 92, 106, 0.35);
    text-align: center;
    transition: all 0.15s ease;
    box-sizing: border-box;
    margin-top: 6px;
}

.oef-auth-submit-btn:hover {
    opacity: 0.94;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 92, 106, 0.42);
}

.oef-auth-submit-btn:disabled,
.oef-auth-submit-btn.oef-loading {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* Feedback Notice */
.oef-auth-msg {
    margin-bottom: 14px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    box-sizing: border-box;
    display: none;
}

.oef-auth-msg.oef-msg-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ef4444;
}

.oef-auth-msg.oef-msg-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #22c55e;
}

.oef-auth-msg.oef-msg-info {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #3b82f6;
}

/* Footer / Mode Switcher */
.oef-auth-footer {
    text-align: center;
    margin: 20px 0 0 0;
    font-size: 13px;
    opacity: 0.85;
}

.oef-auth-footer a,
.oef-auth-switch-mode-btn {
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
    color: #ff8058;
}

.oef-auth-footer a:hover,
.oef-auth-switch-mode-btn:hover {
    text-decoration: underline;
}

/* Logged-In User Greeting Badge */
.oef-auth-greeting {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-radius: 12px;
    background: #141824;
    border: 1px solid #232a3e;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}

.oef-auth-greeting img.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #ff5c6a;
}

.oef-auth-greeting-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.oef-auth-greeting-name {
    font-size: 14px;
    font-weight: 700;
}

.oef-auth-greeting-email {
    font-size: 12px;
    color: #94a3b8;
}

.oef-auth-greeting-actions {
    margin-left: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.oef-auth-greeting-actions a.oef-hub-btn-dashboard {
    background: linear-gradient(135deg, #ff5c6a 0%, #ff8058 100%);
    color: #ffffff !important;
    padding: 7px 16px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
}

.oef-auth-greeting-actions a.oef-hub-btn-logout {
    color: #94a3b8 !important;
    text-decoration: none;
}

.oef-auth-greeting-actions a.oef-hub-btn-logout:hover {
    color: #ffffff !important;
    text-decoration: underline;
}
