/* ============================================
   IDENTITY APP THEME - Orange/Business Style
   Based on Business.BlazorApp design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    /* Primary Colors - Orange Theme */
    --mz-primary: #ff7800;
    --mz-primary-dark: #e56900;
    --mz-primary-light: #ffa033;
    --mz-primary-gradient: linear-gradient(135deg, #ff7800 0%, #e56900 100%);
    /* Success Colors */
    --mz-success: #10b981;
    --mz-success-dark: #059669;
    /* Danger Colors */
    --mz-danger: #ef4444;
    --mz-danger-dark: #dc2626;
    /* Warning Colors */
    --mz-warning: #f59e0b;
    --mz-warning-dark: #d97706;
    /* Info Colors */
    --mz-info: #3b82f6;
    --mz-info-dark: #2563eb;
    /* Neutral Colors */
    --mz-gray-50: #f9fafb;
    --mz-gray-100: #f3f4f6;
    --mz-gray-200: #e5e7eb;
    --mz-gray-300: #d1d5db;
    --mz-gray-400: #9ca3af;
    --mz-gray-500: #6b7280;
    --mz-gray-600: #4b5563;
    --mz-gray-700: #374151;
    --mz-gray-800: #1f2937;
    --mz-gray-900: #111827;
    /* Shadows */
    --mz-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --mz-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --mz-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --mz-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --mz-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    /* Transitions */
    --mz-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --mz-transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    /* Border Radius */
    --mz-radius: 0.5rem;
    --mz-radius-sm: 0.25rem;
    --mz-radius-lg: 0.75rem;
    --mz-radius-xl: 1rem;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #1c1e21;
    background: #f0f2f5;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.3;
    color: #111827;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
}

h2 {
    font-size: 1.75rem;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
}

/* Links */
a {
    color: var(--mz-primary);
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

    a:hover {
        color: var(--mz-primary-dark);
        text-decoration: underline;
    }

/* ============================================
   LAYOUT
   ============================================ */

.identity-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f0f2f5;
}

.identity-header {
    height: 64px;
    background: var(--mz-primary-gradient);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.identity-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.identity-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.375rem;
    font-weight: 700;
    color: white;
}

    .identity-brand .material-icons {
        font-size: 2.25rem;
        color: white;
    }

.identity-brand-text {
    background: linear-gradient(135deg, #ffffff 0%, #fff4e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.identity-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.identity-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--mz-radius);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

    .identity-header-btn:hover {
        background: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.3);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        text-decoration: none;
        color: white;
    }

    .identity-header-btn .material-icons {
        font-size: 1.125rem;
    }

.identity-main {
    flex: 1;
    display: flex;
    width: 100%;
    min-height: calc(100vh - 64px);
    align-items: flex-start;
    justify-content: center;
    /*! padding: 2rem 1rem; */
}

    /* For full-width content like settings */
    .identity-main > div[class*="settings-container"] {
        width: 100%;
        padding: 0;
        align-self: stretch;
    }

/* ============================================
   CARDS & CONTAINERS
   ============================================ */

.identity-card {
    background: white;
    border-radius: var(--mz-radius-lg);
    box-shadow: var(--mz-shadow-lg);
    padding: 2rem;
    width: 100%;
    max-width: 500px;
}

.identity-card-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.identity-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.identity-card-subtitle {
    font-size: 0.875rem;
    color: var(--mz-gray-600);
}

.identity-card-body {
    margin-bottom: 1.5rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.mz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    border-radius: var(--mz-radius);
    border: none;
    cursor: pointer;
    transition: var(--mz-transition);
    box-shadow: var(--mz-shadow-sm);
    text-decoration: none;
    white-space: nowrap;
}

    .mz-btn:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: var(--mz-shadow-md);
    }

    .mz-btn:active:not(:disabled) {
        transform: translateY(0);
        box-shadow: var(--mz-shadow-sm);
    }

    .mz-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .mz-btn .material-icons {
        font-size: 1.25rem;
    }

.mz-btn-primary {
    background: var(--mz-primary-gradient);
    color: white;
}

    .mz-btn-primary:hover:not(:disabled) {
        filter: brightness(1.1);
    }

.mz-btn-secondary {
    background: var(--mz-gray-200);
    color: var(--mz-gray-800);
}

    .mz-btn-secondary:hover:not(:disabled) {
        background: var(--mz-gray-300);
    }

.mz-btn-light {
    background: white;
    color: var(--mz-gray-700);
    border: 1px solid var(--mz-gray-300);
}

    .mz-btn-light:hover:not(:disabled) {
        background: var(--mz-gray-50);
    }

.mz-btn-danger {
    background: var(--mz-danger);
    color: white;
}

    .mz-btn-danger:hover:not(:disabled) {
        background: var(--mz-danger-dark);
    }

.mz-btn-outline-primary {
    background: white;
    color: var(--mz-primary);
    border: 2px solid var(--mz-primary);
}

    .mz-btn-outline-primary:hover:not(:disabled) {
        background: var(--mz-primary);
        color: white;
    }

.mz-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.mz-btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.mz-btn-block {
    width: 100%;
}

/* Ensure touch targets are at least 44x44px for accessibility */
@media (max-width: 768px) {
    .mz-btn,
    button,
    a {
        min-height: 44px;
    }

    .identity-header-btn {
        min-width: 44px;
        min-height: 44px;
    }
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--mz-gray-700);
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: #1c1e21;
    background-color: #fff;
    border: 1px solid #dadde1;
    border-radius: var(--mz-radius);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .form-control:focus {
        color: #1c1e21;
        background-color: #fff;
        border-color: var(--mz-primary);
        outline: 0;
        box-shadow: 0 0 0 0.2rem rgba(255, 120, 0, 0.25);
    }

    .form-control::placeholder {
        color: #65676b;
        opacity: 1;
    }

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.form-check-input {
    width: 1.125rem;
    height: 1.125rem;
    margin-right: 0.5rem;
    background-color: #fff;
    border: 1px solid #dadde1;
    border-radius: 0.25rem;
    cursor: pointer;
}

    .form-check-input:checked {
        background-color: var(--mz-primary);
        border-color: var(--mz-primary);
    }

    .form-check-input:focus {
        border-color: var(--mz-primary);
        outline: 0;
        box-shadow: 0 0 0 0.2rem rgba(255, 120, 0, 0.25);
    }

.form-check-label {
    font-size: 0.875rem;
    color: #1c1e21;
    cursor: pointer;
}

.text-danger {
    color: var(--mz-danger) !important;
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.validation-message {
    color: var(--mz-danger);
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

/* ============================================
   ALERTS & MESSAGES
   ============================================ */

.alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: var(--mz-radius);
    border: 1px solid transparent;
}

.alert-success {
    color: #15803d;
    background-color: #f0fdf4;
    border-color: #bbf7d0;
}

.alert-danger {
    color: #991b1b;
    background-color: #fef2f2;
    border-color: #fecaca;
}

.alert-warning {
    color: #92400e;
    background-color: #fffbeb;
    border-color: #fde68a;
}

.alert-info {
    color: #1e40af;
    background-color: #eff6ff;
    border-color: #bfdbfe;
}

/* ============================================
   SPINNER/LOADING
   ============================================ */

.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

/* ============================================
   LANGUAGE SELECTOR
   ============================================ */

.language-selector {
    position: relative;
}

.language-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    width: 40px;
    height: 40px;
    justify-content: center;
}

    .language-trigger:hover {
        background: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.3);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

.language-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

    .language-dropdown.show {
        display: block;
        animation: dropdownFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.language-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.9375rem;
    color: #374151;
}

    .language-item:hover {
        background: linear-gradient(135deg, rgba(255, 120, 0, 0.1) 0%, rgba(255, 160, 51, 0.08) 100%);
        color: #ff7800;
    }

    .language-item.active {
        background: linear-gradient(135deg, rgba(255, 120, 0, 0.15) 0%, rgba(255, 160, 51, 0.1) 100%);
        color: #ff7800;
        font-weight: 600;
    }

    .language-item .material-icons {
        color: #ff7800 !important;
    }

/* ============================================
   TABS
   ============================================ */

.mz-tabs-header {
    display: flex;
    gap: 0.25rem;
    background: white;
    border-radius: var(--mz-radius) var(--mz-radius) 0 0;
    padding: 0.5rem;
    border-bottom: 1px solid #dadde1;
}

.mz-tab-button {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #65676b;
    background: transparent;
    border: none;
    border-radius: var(--mz-radius);
    cursor: pointer;
    transition: var(--mz-transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .mz-tab-button:hover {
        background: #f0f2f5;
        color: #1c1e21;
    }

    .mz-tab-button.active {
        color: var(--mz-primary);
        background: #fff4e5;
    }

    .mz-tab-button .material-icons {
        font-size: 1.125rem;
    }

.mz-tabs-content {
    padding: 1.5rem;
    background: white;
    border-radius: 0 0 var(--mz-radius) var(--mz-radius);
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center {
    text-align: center !important;
}

.text-muted {
    color: var(--mz-gray-600) !important;
}

.text-primary {
    color: var(--mz-primary) !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.justify-content-center {
    justify-content: center !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.gap-3 {
    gap: 1rem !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet and below */
@media (max-width: 1024px) {
    .identity-header {
        padding: 0 1.5rem;
    }

    .identity-brand {
        font-size: 1.25rem;
    }

        .identity-brand .material-icons {
            font-size: 2rem;
        }
}

/* Mobile landscape and below */
@media (max-width: 768px) {
    .identity-header {
        height: 60px;
        padding: 0 1rem;
    }

    .identity-header-left {
        gap: 0.5rem;
    }

    .identity-brand {
        font-size: 1.125rem;
        gap: 0.5rem;
    }

        .identity-brand .material-icons {
            font-size: 1.75rem;
        }

    .identity-header-right {
        gap: 0.5rem;
    }

    .identity-header-btn-text {
        display: none;
    }

    .identity-header-btn {
        padding: 0.5rem;
        min-width: 40px;
        min-height: 40px;
        justify-content: center;
    }

    .identity-main {
        min-height: calc(100vh - 60px);
        padding: 0;
    }

        .identity-main > div[class*="settings-container"] {
            padding: 0;
        }

    .identity-card {
        max-width: 100%;
        padding: 1.5rem;
        margin: 0;
        border-radius: 12px;
        box-shadow: var(--mz-shadow-md);
    }

    .form-control,
    .form-check-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    /* Language selector mobile optimization */
    .language-trigger {
        width: 36px;
        height: 36px;
        padding: 0.375rem;
    }

    .language-flag {
        width: 18px;
        height: 13px;
    }

    .language-dropdown {
        right: 0;
        min-width: 150px;
        border-radius: 8px;
    }

    .language-item {
        padding: 0.625rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .identity-header {
        height: 56px;
        padding: 0 0.75rem;
    }

    .identity-brand {
        font-size: 1rem;
    }

        .identity-brand .material-icons {
            font-size: 1.5rem;
        }

    .identity-brand-text {
        display: none;
    }

    .identity-header-right {
        gap: 0.375rem;
    }

    .identity-header-btn {
        padding: 0.375rem;
        min-width: 36px;
        min-height: 36px;
    }

        .identity-header-btn .material-icons {
            font-size: 1.125rem;
        }

    .identity-main {
        min-height: calc(100vh - 56px);
        padding: 0;
    }

        .identity-main > div[class*="settings-container"] {
            padding: 0;
        }

    .identity-card {
        padding: 1.25rem 1rem;
        border-radius: 10px;
    }

    .identity-card-title {
        font-size: 1.5rem;
    }

    /* Language selector extra compact */
    .language-trigger {
        width: 32px;
        height: 32px;
        padding: 0.3125rem;
    }

    .language-flag {
        width: 16px;
        height: 12px;
    }

    .language-dropdown {
        right: 0;
        min-width: 140px;
        border-radius: 8px;
        font-size: 0.875rem;
    }

    .language-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }

        .language-item .language-flag {
            width: 16px;
            height: 12px;
        }
}

/* Mobile very small */
@media (max-width: 360px) {
    .identity-header {
        height: 52px;
        padding: 0 0.5rem;
    }

    .identity-brand .material-icons {
        font-size: 1.375rem;
    }

    .identity-header-right {
        gap: 0.25rem;
    }

    .identity-header-btn {
        padding: 0.3125rem;
        min-width: 32px;
        min-height: 32px;
    }

        .identity-header-btn .material-icons {
            font-size: 1rem;
        }

    .language-trigger {
        width: 28px;
        height: 28px;
        padding: 0.25rem;
    }

    .language-flag {
        width: 14px;
        height: 10px;
    }

    .identity-main {
        min-height: calc(100vh - 52px);
    }
}

/* Desktop large optimization */
@media (min-width: 1400px) {
    .identity-header {
        padding: 0 3rem;
    }

    .identity-main {
        padding: 0;
    }
}

/* Prevent horizontal scroll on all devices */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    max-width: 100vw;
    position: relative;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Prevent text size adjustment on orientation change */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .identity-header-btn,
    .language-trigger,
    .language-item {
        -webkit-tap-highlight-color: transparent;
    }

        .identity-header-btn:active {
            transform: scale(0.95);
        }

        .language-trigger:active {
            transform: scale(0.95);
        }
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f3f4f6;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff7800 0%, #ffa033 100%);
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, #e56900 0%, #ff7800 100%);
    }

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #ff7800 #f3f4f6;
}

/* ============================================
   GOOGLE-STYLE AUTH PAGES
   ============================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    padding: 2rem 1rem;
}

.auth-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 48px 40px 36px;
    width: 100%;
    max-width: 450px;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

    .auth-logo .material-icons {
        font-size: 2rem;
        color: var(--mz-primary);
    }

    .auth-logo span:last-child {
        font-size: 1.25rem;
        font-weight: 600;
        color: #202124;
    }

.auth-title {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3333;
    color: #202124;
    margin: 0 0 8px;
    font-family: 'Inter', sans-serif;
}

.auth-subtitle {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #5f6368;
    margin: 0 0 24px;
}

.auth-form .form-group {
    margin-bottom: 24px;
}

.auth-form .form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 8px;
}

.auth-form .form-control {
    width: 100%;
    padding: 13px 15px;
    font-size: 16px;
    line-height: 1.5;
    color: #202124;
    background: white;
    border: 1px solid #dadce0;
    border-radius: 4px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .auth-form .form-control:hover {
        border-color: #202124;
    }

    .auth-form .form-control:focus {
        border-color: var(--mz-primary);
        box-shadow: 0 0 0 1px var(--mz-primary);
        outline: none;
    }

.auth-link {
    color: var(--mz-primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    margin-top: 8px;
}

    .auth-link:hover {
        text-decoration: underline;
        color: var(--mz-primary-dark);
    }

.auth-info-text {
    font-size: 14px;
    color: #5f6368;
    line-height: 1.5;
    margin: 24px 0;
}

    .auth-info-text a {
        color: var(--mz-primary);
        font-weight: 500;
        text-decoration: none;
    }

        .auth-info-text a:hover {
            text-decoration: underline;
        }

.auth-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    gap: 1rem;
}

.auth-btn-create {
    color: var(--mz-primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 4px;
    transition: background-color 0.15s;
}

    .auth-btn-create:hover {
        background-color: rgba(255, 120, 0, 0.08);
        text-decoration: none;
    }

.auth-btn-submit {
    background: var(--mz-primary-gradient);
    color: white;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: box-shadow 0.15s, filter 0.15s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.15);
}

    .auth-btn-submit:hover:not(:disabled) {
        filter: brightness(1.1);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.15);
    }

    .auth-btn-submit:active:not(:disabled) {
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }

    .auth-btn-submit:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.auth-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #dadce0;
    display: flex;
    justify-content: center;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    margin: 16px 0 24px;
}

    .auth-checkbox input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin-right: 8px;
        cursor: pointer;
        border: 2px solid #5f6368;
        border-radius: 2px;
    }

        .auth-checkbox input[type="checkbox"]:checked {
            background-color: var(--mz-primary);
            border-color: var(--mz-primary);
        }

    .auth-checkbox label {
        font-size: 14px;
        color: #202124;
        cursor: pointer;
        user-select: none;
    }

/* Mobile responsive */
@media (max-width: 480px) {
    .auth-page {
        padding: 1rem 0.5rem;
    }

    .auth-card {
        padding: 32px 24px 24px;
        max-width: 100%;
        box-shadow: none;
        border-radius: 0;
    }

    .auth-logo {
        margin-bottom: 0.75rem;
    }

        .auth-logo .material-icons {
            font-size: 1.75rem;
        }

        .auth-logo span:last-child {
            font-size: 1.125rem;
        }

    .auth-title {
        font-size: 20px;
    }

    .auth-subtitle {
        font-size: 14px;
    }

    .auth-actions {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 0.5rem;
    }

    .auth-btn-create {
        text-align: center;
        padding: 12px 24px;
    }

    .auth-btn-submit {
        width: 100%;
        padding: 12px 24px;
    }

    .auth-footer {
        margin-top: 32px;
        padding-top: 16px;
    }
}

/* Back link for auth pages */
.auth-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #5f6368;
    text-decoration: none;
    border-radius: 50%;
    transition: background-color 0.15s, color 0.15s;
    margin-bottom: 1rem;
}

    .auth-back-link:hover {
        background-color: rgba(95, 99, 104, 0.08);
        color: #202124;
        text-decoration: none;
    }

    .auth-back-link .material-icons {
        font-size: 24px;
    }

/* Utility classes */
.w-100 {
    width: 100% !important;
}
