*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

        :root {
            --gold: #f39c12;
            --gold-light: #f1c40f;
            --gold-dark: #D4881A;
            --surface: rgba(255, 255, 255, 0.92);
            --surface-2: rgba(255, 255, 255, 0.6);
            --border: rgba(180, 190, 210, 0.5);
            --border-focus: rgba(243, 156, 18, 0.5);
            --text: #1e2a3a;
            --text-muted: #5a6880;
            --text-subtle: #8a9ab5;
            --radius: 14px;
            --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        }

        html, body { min-height: 100%; height: 100%; }

        body {
            font-family: 'DM Sans', sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            color: var(--text);
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            padding: 24px 16px;
            position: relative;
            overflow-x: hidden;
        }

        body::before {
            content: '';
            position: fixed;
            top: -200px;
            left: 50%;
            transform: translateX(-50%);
            width: clamp(400px, 80vw, 900px);
            height: clamp(400px, 60vh, 700px);
            background: radial-gradient(ellipse at center, rgba(243, 156, 18, 0.07) 0%, transparent 70%);
            pointer-events: none;
            z-index: 0;
        }

        body::after {
            content: '';
            position: fixed;
            bottom: -100px;
            right: -100px;
            width: 400px;
            height: 400px;
            background: radial-gradient(ellipse at center, rgba(195, 207, 226, 0.4) 0%, transparent 70%);
            pointer-events: none;
            z-index: 0;
        }

        .card {
            position: relative;
            z-index: 1;
            width: 100%;
            max-width: 460px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 24px;
            padding: clamp(28px, 6vw, 48px) clamp(20px, 6vw, 44px);
            box-shadow:
                0 0 0 1px rgba(245, 166, 35, 0.05),
                0 32px 80px rgba(0, 0, 0, 0.12),
                0 8px 24px rgba(0, 0, 0, 0.08);
            animation: fadeUp 0.5s ease both;
        }

        @keyframes fadeUp {
            from { opacity: 0; transform: translateY(20px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        .header { text-align: center; margin-bottom: 32px; }

        .brand {
            font-family: 'Sora', sans-serif;
            font-size: clamp(22px, 5vw, 28px);
            font-weight: 700;
            color: var(--text);
            letter-spacing: -0.5px;
            margin-bottom: 6px;
        }

        .brand span {
            background: linear-gradient(90deg, var(--gold), var(--gold-light));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .subtitle {
            font-size: clamp(13px, 3vw, 15px);
            color: var(--text-muted);
            font-weight: 400;
            line-height: 1.5;
        }

        .divider {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 24px;
        }

        .divider-line { flex: 1; height: 1px; background: var(--border); }

        .divider-label {
            font-size: 11px;
            font-weight: 500;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--text-subtle);
        }

        .error-msg {
            background: rgba(224, 82, 82, 0.08);
            border: 1px solid rgba(224, 82, 82, 0.25);
            border-radius: var(--radius);
            padding: 12px 16px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            color: #c0392b;
            font-weight: 500;
            animation: shake 0.4s ease;
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            20% { transform: translateX(-6px); }
            40% { transform: translateX(6px); }
            60% { transform: translateX(-4px); }
            80% { transform: translateX(4px); }
        }

        .error-icon { flex-shrink: 0; }
        .form-group { margin-bottom: 16px; }

        label {
            display: block;
            margin-bottom: 7px;
            font-weight: 500;
            color: var(--text);
            font-size: 13px;
        }

        input[type="text"],
        input[type="password"] {
            width: 100%;
            padding: 13px 16px;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            font-size: 14px;
            font-family: 'DM Sans', sans-serif;
            font-weight: 400;
            transition: var(--transition);
            background: var(--surface-2);
            color: var(--text);
            outline: none;
            -webkit-appearance: none;
        }

        input[type="text"]::placeholder,
        input[type="password"]::placeholder { color: var(--text-subtle); }

        input[type="text"]:focus,
        input[type="password"]:focus {
            border-color: var(--border-focus);
            background: #fff;
            box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.08);
        }

        .show-password-row {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 24px;
            margin-top: 4px;
        }

        .terms-checkbox {
            appearance: none;
            -webkit-appearance: none;
            width: 17px;
            height: 17px;
            min-width: 17px;
            border: 1.5px solid var(--text-subtle);
            border-radius: 5px;
            background: transparent;
            cursor: pointer;
            transition: var(--transition);
            position: relative;
        }

        .terms-checkbox:checked { background: var(--gold); border-color: var(--gold); }

        .terms-checkbox:checked::after {
            content: '';
            position: absolute;
            top: 2px;
            left: 4.5px;
            width: 5px;
            height: 8px;
            border: 2px solid #fff;
            border-top: none;
            border-left: none;
            transform: rotate(45deg);
        }

        .show-password-row label {
            margin: 0;
            font-size: 13px;
            color: var(--text-muted);
            font-weight: 400;
            cursor: pointer;
        }

        .submit-btn {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
            color: white;
            border: none;
            border-radius: var(--radius);
            font-family: 'DM Sans', sans-serif;
            font-size: clamp(14px, 3vw, 15px);
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            box-shadow: 0 4px 16px rgba(243, 156, 18, 0.3);
            letter-spacing: 0.01em;
            position: relative;
            overflow: hidden;
        }

        .submit-btn::before {
            content: '';
            position: absolute;
            inset: 0;
            background: rgba(255,255,255,0.12);
            opacity: 0;
            transition: opacity var(--transition);
        }

        .submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(243, 156, 18, 0.4); }
        .submit-btn:hover::before { opacity: 1; }
        .submit-btn:active { transform: translateY(0px); box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3); }

        .footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 20px;
        }

        .footer-text { font-size: 13px; color: var(--text-muted); }
        .footer-text a { color: var(--gold); text-decoration: none; font-weight: 500; }
        .footer-text a:hover { color: var(--gold-light); }

        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: 13px;
            color: var(--text-subtle);
            text-decoration: none;
            font-weight: 400;
            transition: color var(--transition);
        }

        .back-link:hover { color: var(--text-muted); }

        .forgot-link {
            display: block;
            text-align: center;
            font-size: 13px;
            color: var(--text-subtle);
            text-decoration: none;
            margin-top: 14px;
            transition: color var(--transition);
        }

        .forgot-link:hover { color: var(--gold); }

        @media (max-width: 480px) {
            .card { border-radius: 18px; }
            .footer { flex-direction: column; align-items: flex-start; gap: 8px; }
        }

        @media (min-width: 900px) {
            .card { max-width: 500px; }
        }