-
+
@@ -119,28 +133,43 @@ function goRegister() {
-
+
-
@@ -170,13 +199,80 @@ function goRegister() {
background-repeat: no-repeat;
}
+/* ===== Desktop mode: fields only (card shell in DesktopAuthLayout) ===== */
+.login-page--desktop {
+ min-height: auto;
+ height: auto;
+ width: 100%;
+ align-items: stretch;
+ justify-content: flex-start;
+ padding: 0;
+ background-color: transparent;
+ overflow: visible;
+}
+
+.form-title {
+ margin: 0 0 8px;
+ font-size: 18px;
+ font-weight: 800;
+ color: var(--primary-light, #f0d875);
+ text-align: left;
+ letter-spacing: 0.04em;
+}
+
.login-form {
+ position: relative;
width: 100%;
max-width: 320px;
display: flex;
flex-direction: column;
gap: 8px;
padding: 12px;
+ transition: border-color 0.25s ease, box-shadow 0.25s ease;
+}
+
+.login-form.is-busy {
+ pointer-events: none;
+}
+
+.form-busy-overlay {
+ position: absolute;
+ inset: 0;
+ z-index: 3;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ gap: 10px;
+ border-radius: inherit;
+ background: rgba(8, 8, 8, 0.72);
+ backdrop-filter: blur(2px);
+ pointer-events: all;
+}
+
+.form-busy-text {
+ margin: 0;
+ font-size: 13px;
+ font-weight: 700;
+ color: rgba(240, 216, 117, 0.95);
+ letter-spacing: 0.04em;
+}
+
+.btn-inline-loading {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ gap: 8px;
+}
+
+.login-page--desktop .login-form {
+ max-width: none;
+ width: 100%;
+ gap: 10px;
+ padding: 0;
+ border: none !important;
+ background: transparent !important;
+ box-shadow: none !important;
}
.field {
@@ -185,6 +281,10 @@ function goRegister() {
gap: 4px;
}
+.login-page--desktop .field {
+ gap: 8px;
+}
+
.field-input {
width: 100%;
height: 36px;
@@ -195,6 +295,7 @@ function goRegister() {
color: var(--text);
font-size: 14px;
font-family: inherit;
+ transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field-input:focus {
@@ -202,6 +303,23 @@ function goRegister() {
border-color: #555;
}
+/* Desktop: visible focus ring per UX guideline */
+.login-page--desktop .field-input {
+ height: 46px;
+ font-size: 14px;
+ border-radius: 4px;
+ padding: 0 14px;
+}
+
+.login-page--desktop .field-input:focus {
+ border-color: var(--border-gold, #D4AF37);
+ box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.18);
+}
+
+.login-page--desktop .field-input:hover:not(:focus) {
+ border-color: rgba(255, 255, 255, 0.18);
+}
+
.inline-row {
display: flex;
gap: 6px;
@@ -220,6 +338,11 @@ label {
letter-spacing: 0.04em;
}
+.login-page--desktop label {
+ font-size: 13px;
+ letter-spacing: 0.03em;
+}
+
.btn-mode-switch {
align-self: flex-start;
margin: -2px 0 0;
@@ -230,6 +353,11 @@ label {
font-size: 12px;
font-weight: 600;
cursor: pointer;
+ transition: color 0.2s ease;
+}
+
+.login-page--desktop .btn-mode-switch:hover {
+ color: rgba(240, 216, 117, 0.95);
}
.btn-forgot {
@@ -242,12 +370,17 @@ label {
font-size: 12px;
font-weight: 600;
cursor: pointer;
+ transition: color 0.2s ease;
}
.btn-forgot:active {
color: rgba(255, 255, 255, 0.75);
}
+.login-page--desktop .btn-forgot:hover {
+ color: rgba(255, 255, 255, 0.75);
+}
+
.btn-mode-switch:active {
color: rgba(240, 216, 117, 0.95);
}
@@ -259,6 +392,28 @@ label {
font-size: 14px;
font-weight: 800;
letter-spacing: 0.06em;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ gap: 8px;
+ transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
+}
+
+.login-page--desktop .btn-login {
+ margin-top: 10px;
+ padding: 14px 18px;
+ border-radius: 4px;
+ font-size: 15px;
+ height: 50px;
+}
+
+.login-page--desktop .btn-login:hover:not(:disabled) {
+ background: rgba(212, 175, 55, 0.1);
+ border-color: var(--border-gold, #D4AF37);
+}
+
+.login-page--desktop .btn-login:active:not(:disabled) {
+ transform: scale(0.98);
}
.btn-login:disabled {
@@ -266,6 +421,21 @@ label {
cursor: not-allowed;
}
+.login-page--desktop .btn-login:disabled {
+ opacity: 0.55;
+}
+
+.btn-login.is-loading:disabled {
+ opacity: 1;
+}
+
+.btn-forgot:disabled,
+.btn-mode-switch:disabled,
+.btn-skip:disabled {
+ opacity: 0.45;
+ cursor: not-allowed;
+}
+
.btn-skip {
margin-top: 2px;
padding: 8px 14px;
@@ -275,12 +445,29 @@ label {
font-size: 13px;
font-weight: 600;
cursor: pointer;
+ transition: color 0.2s ease;
}
.btn-skip:active {
color: rgba(255, 255, 255, 0.75);
}
+.login-page--desktop .btn-skip {
+ margin-top: 6px;
+ padding: 12px 16px;
+ border-radius: 4px;
+ border: 1px solid var(--border, #333);
+ background: rgba(20, 20, 20, 0.6);
+ font-size: 14px;
+ transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
+}
+
+.login-page--desktop .btn-skip:hover {
+ border-color: rgba(255, 255, 255, 0.2);
+ color: rgba(255, 255, 255, 0.8);
+ background: rgba(30, 30, 30, 0.8);
+}
+
.btn-skip-light {
position: absolute;
bottom: calc(20px + env(safe-area-inset-bottom));
@@ -304,6 +491,15 @@ label {
color: var(--danger);
font-size: 13px;
font-weight: 600;
+ animation: login-fade-in 0.25s ease;
+}
+
+.login-page--desktop .error {
+ font-size: 12px;
+ padding: 6px 10px;
+ border-radius: 4px;
+ background: rgba(255, 69, 58, 0.08);
+ border-left: 2px solid var(--danger, #FF453A);
}
.success {
@@ -312,5 +508,30 @@ label {
font-size: 12px;
font-weight: 600;
line-height: 1.4;
+ animation: login-fade-in 0.25s ease;
+}
+
+.login-page--desktop .success {
+ font-size: 12px;
+ padding: 6px 10px;
+ border-radius: 4px;
+ background: rgba(110, 231, 160, 0.08);
+ border-left: 2px solid #6ee7a0;
+}
+
+@keyframes login-fade-in {
+ from { opacity: 0; transform: translateY(-4px); }
+ to { opacity: 1; transform: translateY(0); }
+}
+
+/* Respect reduced motion */
+@media (prefers-reduced-motion: reduce) {
+ *,
+ *::before,
+ *::after {
+ animation-duration: 0.01ms !important;
+ animation-iteration-count: 1 !important;
+ transition-duration: 0.01ms !important;
+ }
}
diff --git a/apps/player/src/views/RegisterView.vue b/apps/player/src/views/RegisterView.vue
index 2f957f7..e09b5a1 100644
--- a/apps/player/src/views/RegisterView.vue
+++ b/apps/player/src/views/RegisterView.vue
@@ -11,6 +11,8 @@ import PhoneCountrySelect from '../components/PhoneCountrySelect.vue';
import GoldSpinner from '../components/GoldSpinner.vue';
import loginBg from '../assets/images/h5bg.webp';
+const props = withDefaults(defineProps<{ desktop?: boolean }>(), { desktop: false });
+
const { t, locale } = useI18n();
const { initFromUser } = useAppLocale();
const auth = useAuthStore();
@@ -101,11 +103,15 @@ const fieldError = () => {
-