* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Manrope', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(138deg, #f8fbff 0%, #edf4fd 52%, #e4eefb 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            color: #0f2a49;
            overflow: hidden;
        }

        .signup-container {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 24px;
            box-shadow: 0 26px 60px rgba(11, 36, 67, 0.2);
            overflow: hidden;
            max-width: 1120px;
            width: min(1120px, 96vw);
            display: grid;
            grid-template-columns: minmax(330px, 42%) minmax(440px, 58%);
            min-height: 640px;
            height: min(760px, calc(100vh - 44px));
            border: 1px solid rgba(11, 36, 67, 0.14);
        }

        .signup-left {
            background: linear-gradient(155deg, #0f2f53 0%, #184f84 56%, #1d7398 100%);
            color: #f3f9ff;
            padding: 2.2rem 2rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
        }

        .signup-left h1 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            color: #f3f9ff !important;
        }

        .signup-left h1 i {
            font-size: 3rem;
        }

        .signup-left p {
            font-size: 1.1rem;
            line-height: 1.6;
            margin-bottom: 2rem;
            opacity: 0.92;
            color: rgba(243, 249, 255, 0.9);
        }

        .features-list {
            list-style: none;
            text-align: left;
        }

        .features-list li {
            padding: 0.6rem 0;
            display: flex;
            align-items: center;
            gap: 1rem;
            font-size: 0.95rem;
        }

        .features-list i {
            font-size: 1.3rem;
            color: #80e6ff !important;
        }
        .features-list li span {
            color: #f3f9ff !important;
        }

        .signup-right {
            padding: 1.6rem 1.5rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
            overflow: hidden;
            max-height: none;
            background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
        }

        .signup-header {
            margin-bottom: 0.9rem;
            text-align: center;
        }

        .signup-header h2 {
            color: #333;
            font-size: 2rem;
            margin-bottom: 0.5rem;
        }

        .signup-header p {
            color: #999;
            font-size: 0.95rem;
        }

        .role-selector {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.75rem;
            margin-bottom: 0.8rem;
        }

        .role-option {
            display: none;
        }

        .role-label {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
            padding: 0.9rem 0.8rem;
            border: 2px solid #ddd;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s;
            text-align: center;
            background: white;
        }

        .role-option:checked + .role-label {
            border-color: #1a5f97;
            background: #eef5ff;
            color: #1a5f97;
            transform: scale(1.05);
        }

        .role-label:hover {
            border-color: #1a5f97;
            background: #f9f9f9;
        }

        .role-label i {
            font-size: 2.15rem;
            color: #1a5f97;
        }

        .role-option:checked + .role-label i {
            color: #1a5f97;
        }

        .role-label span {
            font-weight: 600;
            font-size: 1rem;
            color: #333;
        }

        .role-option:checked + .role-label span {
            color: #1a5f97;
        }

        .form-group {
            margin-bottom: 0;
        }

        .form-group label {
            display: block;
            color: #333;
            font-weight: 600;
            margin-bottom: 0.4rem;
            font-size: 0.95rem;
        }

        .form-group input {
            width: 100%;
            padding: 0.72rem 1rem;
            border: 2px solid #ddd;
            border-radius: 10px;
            font-size: 1rem;
            font-family: inherit;
            color: #1f2937;
            background: #ffffff;
            -webkit-text-fill-color: #1f2937;
            transition: all 0.3s;
        }

        .form-group input:focus {
            outline: none;
            border-color: #1a5f97;
            box-shadow: 0 0 10px rgba(15, 47, 83, 0.2);
            background: #f9f9ff;
        }

        .form-group input::placeholder {
            color: #bbb;
        }
        .form-group input:-webkit-autofill,
        .form-group input:-webkit-autofill:hover,
        .form-group input:-webkit-autofill:focus {
            -webkit-text-fill-color: #1f2937;
            transition: background-color 9999s ease-in-out 0s;
            box-shadow: 0 0 0px 1000px #ffffff inset;
        }

        .input-with-icon {
            position: relative;
        }

        .input-with-icon i {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: #1a5f97;
            font-size: 1.1rem;
        }

        .input-with-icon input {
            padding-left: 3rem;
            padding-right: 2.8rem;
        }

        /* Password Show/Hide Button */
        .password-toggle {
            position: absolute;
            right: 1rem;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: #1a5f97;
            cursor: pointer;
            font-size: 1.2rem;
            transition: color 0.3s;
        }

        .password-toggle:hover {
            color: #0f2f53;
        }

        .form-buttons {
            display: flex;
            gap: 0.75rem;
            margin-bottom: 0.2rem;
        }

        .btn-signup, .btn-login {
            flex: 1;
            padding: 0.74rem;
            border: 2px solid #1a5f97;
            border-radius: 10px;
            font-size: 0.92rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .btn-signup {
            background: linear-gradient(135deg, #0f2f53 0%, #1d6397 100%);
            color: white;
        }

        .btn-signup:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(15, 47, 83, 0.35);
        }

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

        .btn-login {
            background: white;
            color: #1a5f97;
        }

        .btn-login:hover {
            background: #f0f4ff;
        }

        .error-message {
            background: #ffebee;
            color: #c62828;
            padding: 1rem;
            border-radius: 10px;
            margin-bottom: 1.5rem;
            display: none;
            border-left: 4px solid #c62828;
            font-size: 0.9rem;
        }

        .error-message.show {
            display: block;
            animation: slideDown 0.3s ease;
        }

        .error-message i {
            margin-right: 0.5rem;
        }

        .success-message {
            background: #e8f5e9;
            color: #2e7d32;
            padding: 1rem;
            border-radius: 10px;
            margin-bottom: 1.5rem;
            display: none;
            border-left: 4px solid #2e7d32;
            font-size: 0.9rem;
        }

        .success-message.show {
            display: block;
            animation: slideDown 0.3s ease;
        }

        .spinner {
            display: inline-block;
            width: 1rem;
            height: 1rem;
            border: 3px solid rgba(255,255,255,0.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 1s ease-in-out infinite;
            margin-right: 0.5rem;
        }

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

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

        .divider-text {
            text-align: center;
            color: #999;
            font-size: 0.9rem;
            margin-top: 0.5rem;
        }

        .divider-text a {
            color: #1a5f97;
            text-decoration: none;
            font-weight: 600;
            cursor: pointer;
        }

        .divider-text a:hover {
            text-decoration: underline;
        }

        .terms-checkbox {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
            color: #666;
        }

        .terms-checkbox input {
            width: auto;
            cursor: pointer;
        }


        .driver-only-fields {
            display: none;
            margin-bottom: 0;
            padding: 0.7rem;
            border: 1px solid #d8e4ff;
            border-radius: 12px;
            background: #f8fbff;
        }

        .driver-only-fields.show {
            display: block;
            animation: slideDown 0.3s ease;
        }

        .driver-only-fields h3 {
            color: #1f3a66;
            font-size: 1.05rem;
            margin-bottom: 0.35rem;
        }

        .driver-only-fields p {
            color: #5f6e85;
            font-size: 0.88rem;
            margin-bottom: 0.65rem;
        }

        #signupForm {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.7rem 0.9rem;
            align-items: start;
        }

        #signupForm .driver-only-fields,
        #signupForm .terms-checkbox,
        #signupForm .form-buttons {
            grid-column: 1 / -1;
        }

        #signupForm .driver-only-fields .form-group {
            margin-bottom: 0.65rem;
        }

        #signupForm .driver-only-fields .form-group:last-child {
            margin-bottom: 0;
        }

        .required-dot {
            color: #d32f2f;
            font-weight: bold;
            margin-left: 0.2rem;
        }
        @media (max-width: 768px) {
            body {
                overflow: auto;
            }
            .signup-container {
                grid-template-columns: 1fr;
                min-height: auto;
                height: auto;
            }

            .signup-left {
                padding: 2rem 1.5rem;
            }

            .signup-left h1 {
                font-size: 1.8rem;
            }

            .signup-right {
                padding: 2rem 1.5rem;
                overflow-y: auto;
            }

            .role-selector {
                grid-template-columns: 1fr 1fr;
            }

            #signupForm {
                grid-template-columns: 1fr;
            }

            .form-buttons {
                flex-direction: column;
            }
        }

        /* Premium auth upgrade: fixes clipping and improves brand quality */
        body {
            align-items: flex-start;
            overflow: auto;
            padding: clamp(10px, 2vh, 24px);
            background:
                radial-gradient(980px 430px at 0% -10%, rgba(20, 148, 168, 0.2), transparent 58%),
                radial-gradient(860px 390px at 100% -5%, rgba(240, 180, 79, 0.2), transparent 56%),
                linear-gradient(136deg, #f9fcff 0%, #edf4fd 52%, #e4eefb 100%);
        }

        .signup-container {
            width: min(1220px, 96vw);
            min-height: clamp(680px, 84vh, 980px);
            height: auto;
            max-height: calc(100dvh - 28px);
            border-radius: 28px;
            border: 1px solid rgba(11, 36, 67, 0.18);
            box-shadow: 0 30px 70px rgba(10, 31, 58, 0.23);
            backdrop-filter: blur(8px);
        }

        .signup-left {
            align-items: flex-start;
            text-align: left;
            gap: 1.2rem;
            padding: clamp(1.7rem, 2.9vw, 2.7rem) clamp(1.2rem, 2.3vw, 2.1rem);
            position: relative;
            overflow: hidden;
        }

        .signup-left::after {
            content: "";
            position: absolute;
            inset: 0;
            pointer-events: none;
            background:
                radial-gradient(circle at 88% 16%, rgba(128, 230, 255, 0.2), transparent 40%),
                radial-gradient(circle at 18% 84%, rgba(255, 255, 255, 0.11), transparent 44%);
        }

        .signup-left h1,
        .signup-left p,
        .features-list {
            position: relative;
            z-index: 1;
        }

        .signup-left h1 {
            font-size: clamp(2rem, 3vw, 3rem);
            line-height: 1.12;
            margin-bottom: 0.3rem;
            letter-spacing: -0.02em;
        }

        .signup-left h1 i { color: #80e6ff !important; }

        .signup-left p {
            max-width: 32ch;
            margin-bottom: 0.1rem;
            color: rgba(243, 249, 255, 0.93);
        }

        .features-list {
            display: grid;
            gap: 0.62rem;
        }

        .features-list li {
            padding: 0;
            font-size: 1rem;
        }

        .signup-right {
            justify-content: center;
            padding: clamp(1.25rem, 2.2vw, 2.2rem);
            gap: 1rem;
            overflow: visible;
            background:
                radial-gradient(circle at 100% 0%, rgba(240, 180, 79, 0.14), transparent 36%),
                linear-gradient(180deg, #fbfdff 0%, #f3f8ff 100%);
        }

        .signup-header h2 {
            color: #0f2a49;
            font-size: clamp(1.95rem, 2.45vw, 2.85rem);
            line-height: 1.1;
            letter-spacing: -0.02em;
        }

        .signup-header p { color: #4a6684; }

        .role-label {
            border: 1.5px solid rgba(11, 36, 67, 0.2);
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.95);
            transition: all 0.2s ease;
        }

        .role-label:hover {
            border-color: #1a5f97;
            transform: translateY(-1px);
            box-shadow: 0 8px 20px rgba(15, 45, 82, 0.14);
        }

        .role-option:checked + .role-label {
            box-shadow: 0 0 0 3px rgba(26, 95, 151, 0.14);
            background: linear-gradient(140deg, #eef5ff 0%, #e3f2ff 100%);
            transform: none;
        }

        #signupForm {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.74rem 0.88rem;
        }

        #signupForm .full-width,
        #signupForm .driver-only-fields,
        #signupForm .terms-checkbox,
        #signupForm .form-buttons {
            grid-column: 1 / -1;
        }

        .form-group input {
            border: 1.5px solid rgba(11, 36, 67, 0.2);
            transition: all 0.2s ease;
        }

        .form-group input:focus {
            border-color: #1a5f97;
            box-shadow: 0 0 0 3px rgba(26, 95, 151, 0.14);
            background: #fbfdff;
        }

        .driver-only-fields {
            border: 1px solid rgba(26, 95, 151, 0.2);
            border-radius: 12px;
            background: linear-gradient(180deg, #f8fbff 0%, #f1f8ff 100%);
        }

        .terms-checkbox {
            margin-bottom: 0.2rem;
            color: #355676;
        }

        .form-buttons {
            gap: 0.64rem;
            margin-top: 0.05rem;
        }

        .btn-signup,
        .btn-login {
            min-height: 44px;
            border-radius: 11px;
            border-width: 1.5px;
            letter-spacing: 0.03em;
            transition: all 0.2s ease;
        }

        .btn-signup:hover:not(:disabled),
        .btn-login:hover {
            transform: translateY(-1px);
            box-shadow: 0 10px 24px rgba(10, 36, 67, 0.2);
        }

        .divider-text {
            color: #4a6684;
            font-size: 0.9rem;
        }

        .divider-text a {
            color: #1a5f97;
            font-weight: 700;
        }

        @media (max-width: 1080px) {
            .signup-container {
                grid-template-columns: 1fr;
                min-height: auto;
                max-height: none;
            }

            .signup-left {
                align-items: center;
                text-align: center;
            }

            .signup-left p { max-width: none; }
        }

        @media (max-width: 760px) {
            body { padding: 8px; }
            .signup-container { width: 100%; border-radius: 18px; }
            .role-selector { grid-template-columns: 1fr; }
            #signupForm { grid-template-columns: 1fr; }
            .form-buttons { flex-direction: column; }
        }

        body::before,
        body::after {
            content: "";
            position: fixed;
            inset: auto;
            pointer-events: none;
            z-index: 0;
        }

        body::before {
            width: 42vw;
            height: 42vw;
            min-width: 320px;
            min-height: 320px;
            left: -12vw;
            top: -16vw;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(126, 232, 255, 0.22) 0%, rgba(126, 232, 255, 0) 68%);
        }

        body::after {
            width: 34vw;
            height: 34vw;
            min-width: 240px;
            min-height: 240px;
            right: -8vw;
            bottom: -10vw;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(240, 180, 79, 0.22) 0%, rgba(240, 180, 79, 0) 70%);
        }

        body > * {
            position: relative;
            z-index: 1;
        }

        .signup-container {
            grid-template-columns: minmax(360px, 42%) minmax(560px, 58%);
            max-height: none;
            overflow: hidden;
            background:
                linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(246, 250, 255, 0.88));
        }

        .showcase-chip {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.48rem 0.82rem;
            border: 1px solid rgba(255, 255, 255, 0.18);
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.08);
            color: #eaf6ff;
            font-size: 0.82rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .showcase-band {
            display: flex;
            flex-wrap: wrap;
            gap: 0.55rem;
        }

        .showcase-band span {
            padding: 0.42rem 0.72rem;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: #f3f9ff !important;
            font-size: 0.82rem;
            font-weight: 600;
        }

        .showcase-proof {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.8rem;
            width: 100%;
            margin-top: 0.35rem;
        }

        .proof-card {
            padding: 0.95rem;
            border-radius: 18px;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.12);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
        }

        .proof-card strong,
        .proof-card span {
            display: block;
            color: #f3f9ff !important;
        }

        .proof-card strong {
            font-size: 1rem;
            margin-bottom: 0.28rem;
            letter-spacing: -0.01em;
        }

        .proof-card span {
            font-size: 0.88rem;
            color: rgba(243, 249, 255, 0.8) !important;
            line-height: 1.5;
        }

        .auth-utility-nav {
            display: flex;
            justify-content: flex-end;
            gap: 0.55rem;
        }

        .utility-btn {
            min-height: 40px;
            padding: 0.7rem 1rem;
            border-radius: 999px;
            border: 1px solid rgba(12, 42, 74, 0.12);
            background: rgba(255, 255, 255, 0.84);
            color: #14385e;
            font-size: 0.88rem;
            font-weight: 700;
            cursor: pointer;
            box-shadow: 0 10px 24px rgba(10, 36, 67, 0.08);
        }

        .utility-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 14px 28px rgba(10, 36, 67, 0.14);
        }

        .utility-btn.utility-primary {
            background: linear-gradient(135deg, #0d2f54 0%, #1f5f95 100%);
            color: #fff;
            border-color: transparent;
        }

        .auth-panel {
            width: 100%;
            padding: clamp(1.2rem, 2vw, 2rem);
            border-radius: 26px;
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.96) 100%);
            border: 1px solid rgba(12, 42, 74, 0.08);
            box-shadow:
                0 22px 42px rgba(10, 36, 67, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
        }

        .auth-eyebrow {
            margin-bottom: 0.45rem;
            color: #1a5f97;
            font-size: 0.8rem;
            font-weight: 800;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            text-align: center;
        }

        @media (max-width: 1080px) {
            .signup-right {
                padding: 1rem;
            }

            .showcase-proof {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 760px) {
            .auth-panel {
                padding: 1rem;
                border-radius: 18px;
            }

            .auth-utility-nav {
                justify-content: stretch;
            }

            .auth-utility-nav .utility-btn {
                flex: 1;
            }
        }

        /* Device-safe responsive order: show signup form first on phones/tablets */
        @media (max-width: 900px) {
            html,
            body {
                overflow-x: hidden;
            }

            body {
                align-items: flex-start;
                justify-content: flex-start;
                padding: 8px;
            }

            .signup-container {
                width: 100%;
                min-height: auto;
                height: auto;
                max-height: none;
                grid-template-columns: 1fr !important;
                overflow: visible;
            }

            .signup-right {
                order: 1;
                width: 100%;
                padding: 1rem;
            }

            .signup-left {
                order: 2;
                width: 100%;
                align-items: flex-start;
                text-align: left;
                padding: 1.1rem 1rem;
                gap: 0.7rem;
            }

            .showcase-proof {
                grid-template-columns: 1fr;
                gap: 0.6rem;
            }

            .proof-card {
                padding: 0.8rem;
                border-radius: 14px;
            }
        }
