/* Extracted from backend/templates/core/join.html */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }
        body { background-color: var(--bg-body); display: flex; justify-content: center; align-items: center; flex-direction: column; min-height: 100vh; color: var(--text-primary); -webkit-font-smoothing: antialiased; }
        a { color: var(--text-secondary); text-decoration: none; font-size: 13px; font-weight: 500; transition: 0.3s ease; }
        a:hover { color: var(--accent-primary); }
        h1 { font-weight: 800; font-size: 32px; margin-bottom: 8px; letter-spacing: -0.03em; color: var(--text-primary); }
        h2 { font-weight: 800; font-size: 32px; margin-bottom: 16px; letter-spacing: -0.03em; color: #FFF; }
        p { font-size: 14px; font-weight: 500; line-height: 1.6; letter-spacing: 0.2px; margin: 10px 0 30px; }
        .logo-mark { position: absolute; top: 32px; left: 40px; font-size: 24px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.04em; z-index: 50; }
        .logo-mark span { color: var(--accent-primary); }
        .logo-mark a { color: inherit; }
        .input-group { width: 100%; position: relative; margin-bottom: 16px; }
        .input-group i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-tertiary); font-size: 14px; }
        .input-group input { background-color: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 14px 16px 14px 44px; width: 100%; font-size: 14px; color: var(--text-primary); transition: 0.3s ease; outline: none; }
        .input-group input::placeholder { color: var(--text-tertiary); font-weight: 500; }
        .input-group input:focus { border-color: var(--accent-primary); background-color: var(--bg-base); box-shadow: 0 0 0 4px var(--accent-soft); }
        .input-group .errorlist { list-style: none; margin: 4px 0 0; padding: 0; font-size: 12px; color: #DC2626; }
        button[type="submit"] { position: relative; z-index: 10; border-radius: var(--radius-md); border: 1px solid transparent; background-color: var(--accent-primary); color: #FFFFFF; font-size: 14px; font-weight: 600; padding: 14px 48px; letter-spacing: 0.5px; transition: 0.3s ease; cursor: pointer; margin-top: 16px; width: 100%; box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2); }
        button[type="submit"]:hover { background-color: var(--accent-hover); box-shadow: 0 6px 12px rgba(37, 99, 235, 0.25); transform: translateY(-1px); }
        button[type="submit"]:active { transform: scale(0.98); }
        
        button.ghost {
            background: rgba(255, 255, 255, 0.15);
            border: 1px solid rgba(255, 255, 255, 0.5);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
            margin-top: 16px;
            width: auto;
            padding: 14px 48px;
            color: #FFFFFF;
            font-size: 15px;
            font-weight: 700;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-shadow: 0 1px 2px rgba(0,0,0,0.1);
            position: relative;
            z-index: 10;
        }
        button.ghost:hover {
            background: rgba(255, 255, 255, 0.25);
            border-color: #FFFFFF;
            transform: translateY(-2px);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
        }
        button.ghost:active {
            transform: scale(0.98);
        }

        .remember-me-group {
            display: flex;
            align-items: center;
            width: 100%;
            margin-bottom: 20px;
            gap: 10px;
            margin-top: -4px;
        }
        .remember-me-group input[type="checkbox"] {
            appearance: none;
            -webkit-appearance: none;
            width: 20px;
            height: 20px;
            border: 2px solid var(--border-hover);
            border-radius: 6px;
            background-color: var(--bg-surface);
            cursor: pointer;
            position: relative;
            transition: 0.2s ease;
            margin: 0;
            outline: none;
        }
        .remember-me-group input[type="checkbox"]:hover {
            border-color: var(--accent-primary);
        }
        .remember-me-group input[type="checkbox"]:checked {
            background-color: var(--accent-primary);
            border-color: var(--accent-primary);
        }
        .remember-me-group input[type="checkbox"]:checked::after {
            content: '\f00c';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            color: white;
            font-size: 11px;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }
        .remember-me-group label {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-secondary);
            cursor: pointer;
            user-select: none;
            transition: 0.2s ease;
        }
        .remember-me-group label:hover {
            color: var(--text-primary);
        }

        .social-container { margin: 24px 0; width: 100%; }
        .social-btn { display: flex; align-items: center; justify-content: center; width: 100%; gap: 10px; border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 14px; font-size: 14px; font-weight: 600; color: var(--text-primary); background: var(--bg-base); cursor: pointer; transition: 0.3s ease; box-shadow: var(--shadow-sm); text-decoration: none; }
        .social-btn:hover { background: var(--bg-surface); border-color: var(--border-hover); transform: translateY(-1px); color: var(--text-primary); }
        .social-btn i { font-size: 18px; }
        .divider { display: flex; align-items: center; width: 100%; margin: 8px 0 24px; color: var(--text-tertiary); font-size: 12px; font-weight: 500; }
        .divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border-light); }
        .divider::before { margin-right: 12px; } .divider::after { margin-left: 12px; }
        .auth-container { background-color: var(--bg-base); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; width: 1000px; max-width: 100%; min-height: 620px; border: 1px solid rgba(255,255,255,0.8); }
        .form-container { position: absolute; top: 0; height: 100%; transition: var(--transition-smooth); }
        .sign-in-container { left: 0; width: 50%; z-index: 2; pointer-events: auto; }
        .auth-container.right-panel-active .sign-in-container { transform: translateX(100%); opacity: 0; pointer-events: none; z-index: 1; }
        .sign-up-container { left: 0; width: 50%; opacity: 0; z-index: 1; pointer-events: none; transform: translateX(20%); }
        .auth-container.right-panel-active .sign-up-container { transform: translateX(100%); opacity: 1; z-index: 5; pointer-events: auto; }
        .overlay-container { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; overflow: hidden; transition: var(--transition-smooth); z-index: 100; pointer-events: none; }
        .auth-container.right-panel-active .overlay-container { transform: translateX(-100%); }
        .overlay { background: var(--accent-gradient); color: #FFFFFF; position: relative; left: -100%; height: 100%; width: 200%; transform: translateX(0); transition: var(--transition-smooth); pointer-events: auto; }
        .auth-container.right-panel-active .overlay { transform: translateX(50%); }
        .overlay::before { content: ''; position: absolute; top: -20%; left: -10%; width: 300px; height: 300px; background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
        .overlay::after { content: ''; position: absolute; bottom: -10%; right: -10%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
        .overlay-panel { position: absolute; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 0 60px; text-align: center; top: 0; height: 100%; width: 50%; transform: translateX(0); transition: var(--transition-smooth); z-index: 10; }
        .overlay-left { transform: translateX(-20%); opacity: 0; pointer-events: none; }
        .auth-container.right-panel-active .overlay-left { transform: translateX(0); opacity: 1; pointer-events: auto; }
        .overlay-right { right: 0; transform: translateX(0); opacity: 1; pointer-events: auto; }
        .auth-container.right-panel-active .overlay-right { transform: translateX(20%); opacity: 0; pointer-events: none; }
        .forgot-password-wrap { margin-top: 16px; width: 100%; text-align: center; }
        @media (max-width: 768px) {
            .auth-container { min-height: 100vh; width: 100%; border-radius: 0; border: none; }
            .logo-mark { top: 24px; left: 24px; }
            .form-container { width: 100%; padding: 0; }
            form { padding: 100px 32px 40px; justify-content: flex-start; }
            .overlay-container { display: none; }
            .sign-in-container, .sign-up-container { left: 0; width: 100%; transform: none !important; }
            .sign-up-container { opacity: 0; z-index: 1; pointer-events: none; }
            .auth-container.right-panel-active .sign-in-container { opacity: 0; z-index: 1; pointer-events: none; }
            .auth-container.right-panel-active .sign-up-container { opacity: 1; z-index: 5; pointer-events: auto; }
            .mobile-toggle { display: block; margin-top: 24px; font-weight: 600; color: var(--accent-primary); cursor: pointer; text-decoration: underline; text-decoration-color: transparent; transition: 0.3s ease; }
            .mobile-toggle:hover { text-decoration-color: var(--accent-primary); }
        }
        @media (min-width: 769px) { .mobile-toggle { display: none; } }
        form { background-color: var(--bg-base); display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 80px 60px 40px; height: 100%; text-align: center; }
