/* Customer Auth Styles - LaserFlow ERP */

.auth-wrapper {
    min-height: 100vh;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
}

.auth-card {
    width: 100%;
    max-width: 28rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2rem;
}

.auth-logo {
    width: 4rem;
    height: 4rem;
    background: #2563eb;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.auth-logo svg {
    width: 2rem;
    height: 2rem;
    color: white;
}

.auth-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-title h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem;
}

.auth-title p {
    color: #64748b;
    margin: 0;
    font-size: 0.95rem;
}

.auth-tabs {
    display: flex;
    background: #f1f5f9;
    border-radius: 0.5rem;
    padding: 0.25rem;
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    padding: 0.5rem;
    text-align: center;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.auth-tab.active {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    color: #2563eb;
}

.auth-tab:not(.active) {
    color: #475569;
}

.auth-tab:not(.active):hover {
    color: #0f172a;
}

.auth-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    padding: 0.75rem;
    color: #dc2626;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.auth-form {
    max-height: 55vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.auth-field {
    margin-bottom: 0.75rem;
}

.auth-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.25rem;
}

.auth-input,
.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="tel"],
.auth-card input[type="number"],
.auth-card textarea,
.auth-card select {
    width: 100% !important;
    padding: 0.625rem 0.875rem !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0.5rem !important;
    font-size: 0.9rem !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    background-color: #fff !important;
    color: #0f172a !important;
}

.auth-input:focus,
.auth-card input:focus,
.auth-card textarea:focus,
.auth-card select:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.auth-input::placeholder,
.auth-card input::placeholder,
.auth-card textarea::placeholder {
    color: #94a3b8 !important;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.auth-checkbox input {
    width: 1rem;
    height: 1rem;
    accent-color: #2563eb;
}

.auth-checkbox label {
    font-size: 0.875rem;
    color: #475569;
}

.auth-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.auth-grid-3 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.auth-section {
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    padding: 0.75rem 0;
    border-top: 1px solid #e2e8f0;
    margin-top: 0.5rem;
}

.auth-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #2563eb;
    color: white;
    font-weight: 500;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.auth-btn:hover {
    background: #1d4ed8;
}

.auth-btn:disabled {
    background: #93c5fd;
    cursor: not-allowed;
}

.auth-intro-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-intro-link:hover {
    color: #2563eb;
}

/* ═══════════ Dark mode ═══════════ */

.dark .auth-wrapper {
    background: transparent;
}

.dark .auth-card {
    background: var(--lf-bg-card, #1e293b);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.dark .auth-title h1 {
    color: var(--lf-text, #f1f5f9);
}

.dark .auth-title p {
    color: var(--lf-text-muted, #94a3b8);
}

.dark .auth-tabs {
    background: var(--lf-bg-muted, #334155);
}

.dark .auth-tab.active {
    background: var(--lf-bg-card, #1e293b);
    color: #60a5fa;
}

.dark .auth-tab:not(.active) {
    color: var(--lf-text-muted, #94a3b8);
}

.dark .auth-tab:not(.active):hover {
    color: var(--lf-text, #f1f5f9);
}

.dark .auth-label {
    color: var(--lf-text-secondary, #cbd5e1);
}

.dark .auth-card input[type="text"],
.dark .auth-card input[type="email"],
.dark .auth-card input[type="password"],
.dark .auth-card input[type="tel"],
.dark .auth-card input[type="number"],
.dark .auth-card textarea,
.dark .auth-card select {
    background-color: var(--lf-bg-muted, #334155) !important;
    color: var(--lf-text, #f1f5f9) !important;
    border-color: var(--lf-border, #334155) !important;
}

.dark .auth-card input:focus,
.dark .auth-card textarea:focus,
.dark .auth-card select:focus {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15) !important;
}

.dark .auth-card input::placeholder,
.dark .auth-card textarea::placeholder {
    color: var(--lf-text-faint, #64748b) !important;
}

.dark .lf-profile-page .auth-input,
.dark .lf-profile-page input[type="text"],
.dark .lf-profile-page input[type="email"],
.dark .lf-profile-page input[type="password"],
.dark .lf-profile-page input[type="tel"],
.dark .lf-profile-page input[type="number"],
.dark .lf-profile-page textarea,
.dark .lf-profile-page select {
    background-color: var(--lf-bg-card, #1e293b) !important;
    color: var(--lf-text, #f1f5f9) !important;
    border-color: var(--lf-slate-400, #64748b) !important;
}

.dark .lf-profile-page .auth-input:hover,
.dark .lf-profile-page input[type="text"]:hover,
.dark .lf-profile-page input[type="email"]:hover,
.dark .lf-profile-page input[type="password"]:hover,
.dark .lf-profile-page input[type="tel"]:hover,
.dark .lf-profile-page input[type="number"]:hover,
.dark .lf-profile-page textarea:hover,
.dark .lf-profile-page select:hover {
    border-color: var(--lf-slate-300, #cbd5e1) !important;
}

.dark .lf-profile-page .auth-input:focus,
.dark .lf-profile-page input:focus,
.dark .lf-profile-page textarea:focus,
.dark .lf-profile-page select:focus {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15) !important;
}

.dark .lf-profile-page .auth-input::placeholder,
.dark .lf-profile-page input::placeholder,
.dark .lf-profile-page textarea::placeholder {
    color: var(--lf-text-faint, #64748b) !important;
}

.dark .auth-section {
    color: var(--lf-text-muted, #94a3b8);
    border-top-color: var(--lf-border, #334155);
}

.dark .auth-error {
    background: #451a1a;
    border-color: #7f1d1d;
    color: #fca5a5;
}

.dark .auth-checkbox label {
    color: var(--lf-text-secondary, #cbd5e1);
}

.dark .auth-intro-link {
    color: var(--lf-text-muted, #94a3b8);
}

.dark .auth-intro-link:hover {
    color: #60a5fa;
}

/* Filament simple auth pages (forgot/reset password) */

.fi-simple-layout {
    min-height: 100vh;
    background: #eef3f9;
}

.fi-simple-main-ctn {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.fi-simple-main {
    width: 100%;
    max-width: 34rem;
}

.fi-simple-page {
    width: 100%;
}

.fi-simple-page-content {
    border: none;
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.18);
    padding: 2rem 2rem 1.75rem;
}

.fi-simple-header {
    margin-bottom: 1.75rem;
    text-align: center;
}

.fi-simple-header .fi-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-inline: auto;
    margin-bottom: 1.25rem;
    color: #0f172a;
    font-size: 2.125rem;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
}

.fi-simple-header .fi-logo::before {
    content: "";
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background-color: #2563eb;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.8' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z' /%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 1.8rem;
    box-shadow: 0 12px 24px -12px rgba(37, 99, 235, 0.45);
}

.fi-simple-header-heading {
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.25;
}

.fi-simple-header-subheading {
    margin-top: 0.875rem;
    color: #2563eb;
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
}

.fi-simple-page-content .fi-link {
    color: #2563eb;
    font-weight: 500;
}

.fi-simple-page-content .fi-link:hover {
    color: #1d4ed8;
}

.fi-simple-page-content .fi-fo-field-wrp {
    margin-bottom: 1rem;
}

.fi-simple-page-content .fi-fo-field-label,
.fi-simple-page-content .fi-fo-field-label-content,
.fi-simple-page-content .fi-fo-field-wrp-label {
    color: #0f172a;
    font-weight: 500;
}

.fi-simple-page-content .fi-fo-field-label-required-mark {
    color: #2563eb;
}

.fi-simple-page-content .fi-input-wrp {
    border-radius: 0.625rem !important;
    border-color: #cbd5e1 !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

.fi-simple-page-content .fi-input-wrp:focus-within {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12) !important;
}

.fi-simple-page-content .fi-input {
    min-height: 3rem;
    border-radius: 0.625rem;
    background: transparent !important;
    color: #0f172a !important;
}

.fi-simple-page-content .fi-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff !important;
    background: #2563eb !important;
    box-shadow: none !important;
    transition: background 0.2s;
}

.fi-simple-page-content .fi-btn:hover {
    background: #1d4ed8 !important;
}

.fi-simple-page-content .fi-btn:disabled,
.fi-simple-page-content .fi-btn[disabled] {
    background: #93c5fd !important;
    cursor: not-allowed;
}

.fi-simple-page-content .fi-ac {
    gap: 1rem;
}

.dark .fi-simple-layout {
    background: #eef3f9;
}

.dark .fi-simple-page-content {
    background: #ffffff;
}

.dark .fi-simple-header .fi-logo,
.dark .fi-simple-header-heading,
.dark .fi-simple-page-content .fi-fo-field-label,
.dark .fi-simple-page-content .fi-fo-field-label-content,
.dark .fi-simple-page-content .fi-fo-field-wrp-label,
.dark .fi-simple-page-content .fi-input {
    color: #0f172a !important;
}

.dark .fi-simple-page-content .fi-fo-field-label-required-mark {
    color: #2563eb !important;
}

.dark .fi-simple-header-subheading,
.dark .fi-simple-page-content .fi-link {
    color: #2563eb !important;
}

.dark .fi-simple-page-content .fi-link:hover {
    color: #1d4ed8 !important;
}

.dark .fi-simple-page-content .fi-input-wrp {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
}

@media (max-width: 640px) {
    .fi-simple-main-ctn {
        padding: 1rem;
    }

    .fi-simple-page-content {
        padding: 1.5rem 1.25rem;
        border-radius: 1rem;
    }
}
