vdi-cloud/ui/terminal/login-interactions.css

65 lines
7.0 KiB
CSS

/* Login interactions extend the established login design; brand art and layout remain owned by index.html. */
.login-view .login-card.auth-enhanced{height:auto;min-height:70vh}
@media(max-width:1300px){.login-view .login-card.auth-enhanced{min-height:0}}
.login-view .auth-intro{display:flex;align-items:center;justify-content:space-between;gap:12px}
.login-view .auth-text-button{border:0;background:none;padding:4px 0;color:#e6ab7d;font-size:12px;line-height:1.5;white-space:nowrap;cursor:pointer}
.login-view .auth-password{position:relative}
.login-view .auth-password .input{display:block;padding-right:49px!important}
.login-view .auth-eye{display:grid;place-items:center;position:absolute;right:5px;top:50%;transform:translateY(-50%);width:40px;height:40px;padding:0;border:0;border-radius:8px;background:none;color:#bec9d5;cursor:pointer}
.auth-eye svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.login-view .auth-eye:hover{background:rgba(150,164,180,.12)}
.login-view .auth-enhanced .primary{display:inline-flex;justify-content:center;align-items:center;gap:10px;margin-top:20px!important;cursor:pointer}
.login-view .auth-feedback{min-height:20px;margin:10px 0 0;line-height:20px;letter-spacing:0;color:#b6c2cf;font-size:12px}
.login-view .auth-feedback.error{color:#ffb7ad}
.login-view .auth-enhanced .input[aria-invalid=true]{border:1px solid #e7978a!important}
.login-view .auth-enhanced .card-footer{margin-top:18px!important}
.login-view .auth-enhanced[aria-busy=true] .primary{opacity:.8}
.login-view .auth-enhanced :disabled{cursor:wait}
.login-view .auth-enhanced input:disabled{opacity:.75}
.login-view .auth-enhanced :focus-visible,#auth-service:focus-visible{outline:2px solid #edb78f;outline-offset:3px}
.auth-spinner{width:15px;height:15px;border-radius:50%;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;animation:auth-spin .9s linear infinite}
@keyframes auth-spin{to{transform:rotate(360deg)}}
.auth-dialog{color-scheme:dark;--auth-bg:#242d38;--auth-input:#293540;--auth-text:#edf1f5;--auth-secondary:#bac5cf;--auth-line:#445362;--auth-accent:#efb38a;--auth-wash:#382e28;--auth-error:#ffb7ad;--auth-button:#a95829;width:min(480px,calc(100% - 40px));max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);overflow:auto;margin:auto;padding:30px;border:1px solid var(--auth-line);border-radius:24px;background:var(--auth-bg);color:var(--auth-text);box-shadow:0 25px 80px rgba(0,0,0,.3);font-size:14px;line-height:1.65}
.auth-dialog:not([open]){display:none}
.auth-dialog::backdrop{background:rgba(9,15,23,.6);backdrop-filter:blur(3px)}
.auth-dialog-header{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:21px}
.auth-dialog-header h2{font-size:23px;line-height:1.4;margin:0;font-weight:650;letter-spacing:-.3px}
.auth-dialog-sub{font-size:13px;color:var(--auth-secondary);margin:8px 0 0}
.auth-dialog-close{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:9px;background:var(--auth-input);color:var(--auth-secondary);font-size:23px;line-height:1;flex-shrink:0}
.auth-dialog :focus-visible{outline:2px solid var(--auth-accent);outline-offset:3px}
.auth-dialog-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:4px;background:var(--auth-input);border:1px solid var(--auth-line);border-radius:12px;margin-bottom:24px}
.auth-dialog-tabs button{min-height:40px;border:0;border-radius:8px;background:none;color:var(--auth-secondary);font-size:14px}
.auth-dialog-tabs button[aria-selected=true]{color:var(--auth-accent);background:var(--auth-wash);font-weight:650}
.auth-dialog .auth-field{display:grid;gap:8px;margin:18px 0;color:var(--auth-text);font-size:14px}
.auth-dialog .auth-input{height:46px;width:100%;min-width:0;border:1px solid var(--auth-line);border-radius:11px;padding:0 13px;background:var(--auth-input);color:var(--auth-text);outline:none}
.auth-dialog .auth-input[aria-invalid=true]{border-color:var(--auth-error)}
.auth-dialog .auth-input::placeholder{color:var(--auth-secondary)}
.auth-dialog small{font-size:12px;color:var(--auth-secondary);line-height:1.7}
.auth-dialog .auth-note{padding:14px 16px;border:1px solid var(--auth-line);border-radius:12px;background:var(--auth-input);color:var(--auth-secondary);font-size:13px;line-height:1.8;margin:20px 0}
.auth-dialog .auth-note strong{color:var(--auth-text);font-weight:600}
.auth-dialog .auth-note p{margin:5px 0 0}
.auth-dialog .auth-note dd{margin:0;overflow-wrap:anywhere;color:var(--auth-text)}
.auth-dialog .auth-note dt{color:var(--auth-secondary);font-size:12px}
.auth-dialog .auth-note>div+div{margin-top:12px}
.auth-dialog-error{min-height:21px;font-size:13px;color:var(--auth-error);margin:12px 0 0}
.auth-dialog-actions{display:flex;justify-content:flex-end;align-items:center;gap:11px;margin-top:23px}
.auth-dialog-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:0 17px;border:1px solid var(--auth-line);border-radius:11px;background:transparent;color:var(--auth-text);font-size:14px;white-space:nowrap}
.auth-dialog-button.primary{width:auto;margin:0;letter-spacing:0;border-color:var(--auth-button);background:var(--auth-button);color:#fff;box-shadow:none;height:auto}
.auth-dialog-button:disabled{opacity:.7;cursor:wait}
.auth-dialog .auth-checkbox{display:flex;align-items:flex-start;gap:9px;font-size:13px;color:var(--auth-secondary);margin-top:18px}
.auth-dialog .auth-checkbox input{accent-color:var(--auth-button);width:17px;height:17px;flex-shrink:0;margin-top:3px}
.auth-demo-credentials{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0;background:var(--auth-input);border:1px solid var(--auth-line);border-radius:13px;padding:18px}
.auth-demo-credentials dt{color:var(--auth-secondary);font-size:13px}
.auth-demo-credentials dd{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:17px;color:var(--auth-text);margin:5px 0 0}
body[data-theme=light] .login-view .auth-text-button{color:#8b4720}
body[data-theme=light] .login-view .auth-eye{color:#667785}
body[data-theme=light] .login-view .auth-feedback{color:#536372}
body[data-theme=light] .login-view .auth-feedback.error{color:#aa3f32}
body[data-theme=light] .login-view .auth-enhanced .input[aria-invalid=true]{border-color:#bd5344!important}
body[data-theme=light] .login-view .auth-enhanced :focus-visible,body[data-theme=light] #auth-service:focus-visible{outline-color:#954b22}
body[data-theme=light] .auth-dialog{color-scheme:light;--auth-bg:#fff;--auth-input:#f5f6f7;--auth-text:#283440;--auth-secondary:#536372;--auth-line:#d8dfe5;--auth-accent:#954b22;--auth-wash:#faeee5;--auth-error:#aa3f32;--auth-button:#a95829;box-shadow:0 25px 80px rgba(25,38,50,.18)}
@media(max-width:600px){.auth-dialog{padding:24px 20px;border-radius:20px}.auth-dialog-header h2{font-size:21px}.auth-dialog-actions{flex-wrap:wrap}.auth-dialog-button{flex:1}.auth-demo-credentials{gap:12px;padding:14px}}
@media(prefers-reduced-motion:reduce){.auth-spinner{animation:none}}
.auth-dialog-status{min-height:21px;font-size:13px;color:var(--auth-secondary);margin:12px 0 0}