/*
 * Fair E Web Host — Authentication UI v10
 * Login + registration presentation.
 *
 * Extracted from the production auth views so authentication
 * styling is no longer embedded directly inside PHP templates.
 */


/* ==========================================================
   LOGIN
   ========================================================== */

:root {
            --primary-color: #16a34a;
            --primary-dark: #15803d;
            --primary-light: #22c55e;
            --secondary-color: #0284c7;
            --secondary-dark: #0369a1;
            --accent-color: #f59e0b;
        }

        *,
        *::before,
        *::after {
            box-sizing: border-box;
        }

        html {
            min-height: 100%;
        }

        body {
            margin: 0;
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            min-height: 100vh;
            min-height: 100dvh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                'Helvetica Neue', Arial, sans-serif;
        }

        /* ── Page wrapper ───────────────────────────────── */
        .login-page {
            width: 100%;
            min-height: calc(100vh - 40px);
            min-height: calc(100dvh - 40px);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding-left: 12px;
            padding-right: 12px;
        }

        /* ── Card ─────────────────────────────────────── */
        .login-card {
            background: white;
            border-radius: 16px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            overflow: hidden;
            max-width: 450px;
            width: 100%;
            margin: 0 auto;
            animation: slideUp 0.5s ease;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

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

        /* ── Header ───────────────────────────────────── */
        .login-header {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
            color: white;
            padding: 2.5rem 2rem;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .login-header::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
            animation: pulse 15s ease-in-out infinite;
        }

        @keyframes pulse {

            0%,
            100% {
                transform: scale(1);
                opacity: 0.5;
            }

            50% {
                transform: scale(1.1);
                opacity: 0.8;
            }
        }

        .login-header i {
            font-size: 3rem;
            margin-bottom: 1rem;
            position: relative;
            z-index: 1;
        }

        .login-header h2 {
            font-weight: 700;
            margin-bottom: 0.5rem;
            position: relative;
            z-index: 1;
        }

        .login-header p {
            margin-bottom: 0;
            opacity: 0.95;
            position: relative;
            z-index: 1;
        }

        /* ── Body ─────────────────────────────────────── */
        .login-body {
            padding: 2rem;
        }

        /* ── Alerts ───────────────────────────────────── */
        .alert {
            border-radius: 10px;
            border: none;
            margin-bottom: 1.5rem;
        }

        .alert-danger {
            background: #fef2f2;
            color: #991b1b;
            border-left: 4px solid #ef4444;
        }

        .alert-success {
            background: #f0fdf4;
            color: #166534;
            border-left: 4px solid #22c55e;
        }

        .alert-info {
            background: #eff6ff;
            color: #1e40af;
            border-left: 4px solid #3b82f6;
        }

        .alert-warning {
            background: #fffbeb;
            color: #92400e;
            border-left: 4px solid #f59e0b;
        }

        /* ── Order notice ─────────────────────────────── */
        .order-notice {
            background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
            border-left: 4px solid var(--primary-color);
            border-radius: 10px;
            padding: 1rem;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .order-notice i {
            color: var(--primary-color);
            font-size: 1.5rem;
        }

        .order-notice-text {
            flex: 1;
        }

        .order-notice-text strong {
            color: #065f46;
            display: block;
            margin-bottom: 0.25rem;
        }

        .order-notice-text p {
            margin: 0;
            font-size: 0.875rem;
            color: #047857;
        }

        /* ── Form ─────────────────────────────────────── */
        .form-label {
            font-weight: 600;
            color: #475569;
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
        }

        .form-control {
            border: 2px solid #e5e7eb;
            border-radius: 10px;
            padding: 0.75rem 1rem;
            transition: all 0.3s ease;
            font-size: 0.95rem;
        }

        .form-control:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1);
            outline: none;
        }

        .form-check-input:checked {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
        }

        /* ── Buttons ──────────────────────────────────── */
        .btn-primary {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
            border: none;
            padding: 0.875rem 2rem;
            font-weight: 700;
            border-radius: 10px;
            transition: all 0.3s ease;
            font-size: 1rem;
        }

        .btn-primary:hover {
            background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(22, 163, 74, 0.3);
        }

        .btn-primary:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        /* ── Google button ────────────────────────────── */
        .btn-google {
            width: 100%;
            padding: 0.875rem 1.5rem;
            background: white;
            border: 2px solid #e5e7eb;
            border-radius: 10px;
            font-weight: 600;
            color: #374151;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            transition: all 0.3s ease;
            text-decoration: none;
            cursor: pointer;
        }

        .btn-google:hover {
            background: #f9fafb;
            border-color: #4285f4;
            color: #374151;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(66, 133, 244, 0.2);
        }

        .btn-google svg {
            width: 20px;
            height: 20px;
            flex-shrink: 0;
        }

        /* ── Divider ──────────────────────────────────── */
        .divider {
            display: flex;
            align-items: center;
            text-align: center;
            margin: 1.5rem 0;
        }

        .divider::before,
        .divider::after {
            content: '';
            flex: 1;
            border-bottom: 1px solid #e5e7eb;
        }

        .divider span {
            padding: 0 1rem;
            color: #64748b;
            font-size: 0.875rem;
            font-weight: 500;
        }

        /* ── Forgot password ──────────────────────────── */
        .forgot-password {
            text-align: right;
            margin-top: 0.5rem;
        }

        .forgot-password a {
            color: var(--secondary-color);
            text-decoration: none;
            font-size: 0.875rem;
            font-weight: 500;
            transition: color 0.2s ease;
        }

        .forgot-password a:hover {
            color: var(--secondary-dark);
            text-decoration: underline;
        }

        /* ── Footer ───────────────────────────────────── */
        .login-footer {
            text-align: center;
            margin-top: 1.5rem;
            padding-top: 1.5rem;
            border-top: 1px solid #e5e7eb;
        }

        .login-footer p {
            margin: 0;
            color: #64748b;
        }

        .login-footer a {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 600;
            transition: color 0.2s ease;
        }

        .login-footer a:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }

        /* ── Back to home ─────────────────────────────── */
        .back-to-home {
            text-align: center;
            margin-top: 1.5rem;
            width: 100%;
        }

        .back-to-home a {
            color: white;
            text-decoration: none;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            transition: all 0.3s ease;
        }

        .back-to-home a:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateX(-4px);
        }

        /* ── Responsive ───────────────────────────────── */
        @media (max-width: 576px) {
            body {
                padding: 16px;
                align-items: center;
            }

            .login-page {
                min-height: calc(100vh - 32px);
                min-height: calc(100dvh - 32px);
                padding-left: 0;
                padding-right: 0;
            }

            .login-body {
                padding: 1.5rem;
            }

            .login-header {
                padding: 2rem 1.5rem;
            }

            .divider span {
                padding: 0 0.75rem;
                font-size: 0.8rem;
            }
        }
    .auth-brand-logo{display:block;max-width:190px;max-height:52px;object-fit:contain;margin:0 auto 10px;filter:brightness(0) invert(1);}

/* ==========================================================
   REGISTRATION
   ========================================================== */

:root {
            --primary-color: #16a34a;
            --primary-dark: #15803d;
            --primary-light: #22c55e;
            --secondary-color: #0284c7;
            --secondary-dark: #0369a1;
            --accent-color: #f59e0b;
        }

        *,
        *::before,
        *::after {
            box-sizing: border-box;
        }

        html {
            min-height: 100%;
        }

        body {
            margin: 0;
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            min-height: 100vh;
            min-height: 100dvh;
            padding: 30px 20px;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                'Helvetica Neue', Arial, sans-serif;
        }

        /* ── Page wrapper ───────────────────────────────── */
        .register-page {
            width: 100%;
            min-height: calc(100vh - 60px);
            min-height: calc(100dvh - 60px);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding-left: 12px;
            padding-right: 12px;
        }

        /* ── Card ─────────────────────────────────────── */
        .register-card {
            background: white;
            border-radius: 16px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            overflow: hidden;
            max-width: 700px;
            width: 100%;
            margin: 0 auto;
            animation: slideUp 0.5s ease;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

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

        /* ── Header ───────────────────────────────────── */
        .register-header {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
            color: white;
            padding: 2.5rem 2rem;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .register-header::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
            animation: pulse 15s ease-in-out infinite;
        }

        @keyframes pulse {

            0%,
            100% {
                transform: scale(1);
                opacity: 0.5;
            }

            50% {
                transform: scale(1.1);
                opacity: 0.8;
            }
        }

        .register-header i {
            font-size: 3rem;
            margin-bottom: 1rem;
            position: relative;
            z-index: 1;
        }

        .register-header h2 {
            font-weight: 700;
            margin-bottom: 0.5rem;
            position: relative;
            z-index: 1;
        }

        .register-header p {
            margin-bottom: 0;
            opacity: 0.95;
            position: relative;
            z-index: 1;
        }

        /* ── Body ─────────────────────────────────────── */
        .register-body {
            padding: 2rem;
        }

        /* ── Social Login ─────────────────────────────── */
        .social-login-section {
            margin-bottom: 2rem;
            padding-bottom: 2rem;
            border-bottom: 2px solid #f1f5f9;
        }

        .social-login-section h6 {
            text-align: center;
            color: #64748b;
            font-weight: 600;
            margin-bottom: 1rem;
            font-size: 0.875rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .btn-google {
            width: 100%;
            padding: 0.875rem 1.5rem;
            background: white;
            border: 2px solid #e5e7eb;
            border-radius: 10px;
            font-weight: 600;
            color: #374151;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            transition: all 0.3s ease;
            text-decoration: none;
            cursor: pointer;
        }

        .btn-google:hover {
            background: #f9fafb;
            border-color: #4285f4;
            color: #374151;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(66, 133, 244, 0.2);
            text-decoration: none;
        }

        .btn-google svg {
            width: 20px;
            height: 20px;
            flex-shrink: 0;
        }

        /* ── Divider ──────────────────────────────────── */
        .divider {
            display: flex;
            align-items: center;
            text-align: center;
            margin: 1.5rem 0;
        }

        .divider::before,
        .divider::after {
            content: '';
            flex: 1;
            border-bottom: 1px solid #e5e7eb;
        }

        .divider span {
            padding: 0 1rem;
            color: #64748b;
            font-size: 0.875rem;
            font-weight: 500;
        }

        /* ── Order Summary ────────────────────────────── */
        .order-summary-box {
            background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
            border-left: 4px solid var(--primary-color);
            border-radius: 12px;
            padding: 1.25rem;
            margin-bottom: 1.5rem;
            animation: slideDown 0.4s ease;
        }

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

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

        .order-summary-box h6 {
            margin-bottom: 0.75rem;
            color: #065f46;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .order-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
            padding: 0.75rem 0;
            border-bottom: 1px solid rgba(22, 163, 74, 0.1);
        }

        .order-item:last-child {
            border-bottom: none;
        }

        .order-item-name {
            font-weight: 600;
            color: #047857;
        }

        .order-item-price {
            font-weight: 700;
            color: var(--primary-color);
            font-size: 1.25rem;
            white-space: nowrap;
        }

        .order-detail {
            font-size: 0.875rem;
            color: #059669;
            margin-top: 0.25rem;
        }

        /* ── Sections ─────────────────────────────────── */
        .section-title {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 1.1rem;
            font-weight: 700;
            color: #1e293b;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid #f1f5f9;
        }

        .section-title i {
            color: var(--primary-color);
        }

        /* ── Form ─────────────────────────────────────── */
        .form-label {
            font-weight: 600;
            color: #475569;
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
        }

        .form-control,
        .form-select {
            border: 2px solid #e5e7eb;
            border-radius: 10px;
            padding: 0.75rem 1rem;
            transition: all 0.3s ease;
            font-size: 0.95rem;
        }

        .form-control:focus,
        .form-select:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1);
            outline: none;
        }

        .form-check-input:checked {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
        }

        .required-indicator {
            color: #ef4444;
            margin-left: 2px;
        }

        .info-tooltip {
            cursor: help;
            color: #94a3b8;
            margin-left: 0.25rem;
            font-size: 0.875rem;
        }

        .iti {
            width: 100%;
        }

        .iti input.form-control {
            width: 100%;
        }

        /* ── Buttons ──────────────────────────────────── */
        .btn-primary {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
            border: none;
            padding: 1rem 2rem;
            font-weight: 700;
            border-radius: 10px;
            transition: all 0.3s ease;
            font-size: 1rem;
        }

        .btn-primary:hover {
            background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(22, 163, 74, 0.3);
        }

        .btn-primary:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        /* ── Password Strength ────────────────────────── */
        .password-strength {
            height: 4px;
            border-radius: 2px;
            margin-top: 0.5rem;
            background: #e5e7eb;
            overflow: hidden;
        }

        .password-strength-bar {
            height: 100%;
            transition: all 0.3s ease;
            width: 0;
        }

        .strength-weak {
            background: #ef4444;
            width: 33%;
        }

        .strength-medium {
            background: #f59e0b;
            width: 66%;
        }

        .strength-strong {
            background: #22c55e;
            width: 100%;
        }

        /* ── Alerts ───────────────────────────────────── */
        .alert {
            border-radius: 10px;
            border: none;
            margin-bottom: 1.5rem;
        }

        .alert-danger {
            background: #fef2f2;
            color: #991b1b;
            border-left: 4px solid #ef4444;
        }

        .alert-info {
            background: #eff6ff;
            color: #1e40af;
            border-left: 4px solid #3b82f6;
        }

        /* ── Links ────────────────────────────────────── */
        a {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 600;
            transition: color 0.2s ease;
        }

        a:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }

        .text-center a {
            color: var(--secondary-color);
        }

        .text-center a:hover {
            color: var(--secondary-dark);
        }

        /* ── Responsive ───────────────────────────────── */
        @media (max-width: 768px) {
            body {
                padding: 20px 16px;
            }

            .register-page {
                min-height: calc(100vh - 40px);
                min-height: calc(100dvh - 40px);
                padding-left: 0;
                padding-right: 0;
                justify-content: flex-start;
            }

            .register-body {
                padding: 1.5rem;
            }

            .register-header {
                padding: 2rem 1.5rem;
            }

            .order-item {
                align-items: flex-start;
                flex-direction: column;
            }

            .order-item-price {
                font-size: 1.1rem;
            }
        }

        @media (max-width: 576px) {
            .register-body {
                padding: 1.25rem;
            }

            .register-header {
                padding: 1.75rem 1.25rem;
            }

            .register-header i {
                font-size: 2.5rem;
            }

            .divider span {
                padding: 0 0.75rem;
                font-size: 0.8rem;
            }
        }
    .auth-brand-logo{display:block;max-width:190px;max-height:52px;object-fit:contain;margin:0 auto 10px;filter:brightness(0) invert(1);}
