/* Värvid on teisendatud halltoonideks (must-valge, tagasihoidlik kujundus). */
/* Ühise sisselogimise tootmisstiilid: serveri olekud, vormielemendid ja desktopi paigutus. Põhikujundus on design.css-is. */
[hidden]{display:none!important}
/* Loetavamad vormid kõigis ekraanisuurustes. */
.intro{font-size:16px;max-width:none}
.method-tabs{gap:4px}
.method-tabs button{font-size:16px;font-weight:600;min-height:48px;color:#505050;padding:11px 6px}
.method-tabs button[aria-selected=true]{border-color:#b8b8b8;color:#191919}
label.field,.remember,.signup,.signup button{font-size:15px}
.input{font-size:16px;min-height:50px}
.primary,.google-button{font-size:16px;min-height:50px;font-weight:600}
.field-hint,.method-help,.legal-links,.card-message,.consent,.forgot,.back-link,.explanation,.explanation p{font-size:14px;color:#595959}
.eyebrow{font-size:14px}
.back-link{font-size:16px}
.service-name{font-size:20px}
.divider{font-size:14px}
.password-wrap button{font-size:13px}
@media(min-width:561px){
  .card-content{padding:32px 40px}
  .destination{padding:24px 40px}
}
.method-tabs.without-card{grid-template-columns:repeat(3,minmax(0,1fr))}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.page-grid{width:100%;max-width:600px;margin:0 auto}
.login-layout{max-width:600px;margin:0 auto}
.text-link{color:#454545;text-decoration:underline;text-underline-offset:3px}
.text-link:hover{color:#191919}
.signup-callout{display:flex;align-items:center;justify-content:center;gap:8px;text-align:left;color:#191919}
.signup-callout p{margin:0;font-size:17px;font-weight:700;line-height:1.4}
.signup-button{display:inline-flex;align-items:center;justify-content:center;gap:12px;flex-shrink:0;min-height:48px;padding:10px 18px;border:1px solid #555555;border-radius:8px;background:#ffffff;color:#191919;font-size:16px;font-weight:600}
.signup-button:hover{background:#f3f3f3;border-color:#191919}
@media(max-width:560px){
  .signup-callout{flex-direction:column;align-items:stretch;gap:4px;text-align:center}
}

/* vahelehed ja paneelid */
.method-tabs a,.method-tabs button{display:block;text-align:center}
.panel>form{margin:0}
.panel .card-message{margin-top:0}
.remember{display:flex;align-items:center;gap:9px;margin:4px 0 18px;font-size:15px;color:#555555}
.remember input{width:17px;height:17px;margin:0;accent-color:#191919}
.remember .hint{margin-left:auto;font-size:12px;color:#7f7f7f;cursor:help;border-bottom:1px dotted #aaaaaa}
.new-account{border:1px solid #e3e3e3;background:#f9f9f9;border-radius:8px;padding:16px 16px 2px;margin:0 0 18px}
.new-account p{font-size:12px;line-height:1.6;color:#535353;margin:0 0 14px}
.forgot{text-decoration:none;text-align:right;width:max-content}
.forgot:hover{color:#191919;text-decoration:underline}
.primary{text-decoration:none}
a.primary{color:#ffffff}
.primary.secondary{color:#454545;font-size:16px;min-height:48px;font-weight:600}
.primary + .primary{margin-top:10px}
.honeypot{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}

/* teated */
.form-error,.form-success{font-size:13px;line-height:1.6;border-radius:6px;padding:11px 12px;margin:0 0 18px}
.form-success{background:#f5f5f5;border:1px solid #cfcfcf;color:#4f4f4f}
.form-error strong,.form-success strong{display:block;margin-bottom:2px}
.error-detail{display:block;margin-top:6px;font-size:11px;color:#717171;font-family:ui-monospace,Consolas,monospace}

/* oleku vaated kaardi sees */
.state h1{font-size:26px;margin-bottom:10px}
.state .intro{margin-bottom:22px}
.state-icon{width:42px;height:42px;border-radius:12px;background:#f1f1f1;display:grid;place-items:center;margin-bottom:18px;color:#454545}
.state-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6}
.state-icon.warn{background:#f3f3f3;color:#4e4e4e}
.state-icon.ok{background:#f4f4f4;color:#4f4f4f}
.spinner{width:16px;height:16px;border:2px solid #d5d5d5;border-top-color:#454545;border-radius:50%;display:inline-block;vertical-align:-3px;margin-right:8px;animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.auth-wait{color:#676767}
.user-card{display:flex;align-items:center;gap:14px;border:1px solid #e5e5e5;border-radius:8px;padding:14px;margin:0 0 20px}
.avatar{width:44px;height:44px;border-radius:50%;background:#ededed;color:#454545;display:grid;place-items:center;font-family:var(--heading-fonts);font-weight:600;overflow:hidden;flex-shrink:0}
.avatar img{width:100%;height:100%;object-fit:cover}
.user-card strong{display:block;font-size:15px;color:#191919}
.user-card span{font-size:12px;color:#676767}

/* registreerimine */
.register-fields{display:grid;gap:14px;grid-template-columns:minmax(0,1fr)}
.register-fields>.field-wrap{margin-bottom:0;min-width:0}
.register-fields .phone .input:not(.areacode){min-width:0}
.register-content .intro{margin-bottom:18px}
.register-content .method-tabs{margin-bottom:18px}
.register-content .consent{margin:16px 0}
.register-content .signup{margin-top:16px;padding-top:14px}
@media(min-width:700px){
  .register-content{padding:24px 32px}
  .register-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}
  .register-fields>.field-wrap:last-child{grid-column:2}
  .register-fields:has(>[data-company][hidden])>.field-wrap:nth-child(4){grid-column:1 / -1}
}
.radio-row{display:flex;gap:18px;margin:0 0 16px;font-size:13px}
.radio-row label{display:flex;align-items:center;gap:7px}
.radio-row input{accent-color:#191919}
.phone input.areacode{width:84px;flex:0 0 84px;text-align:center}
.typeahead-container{position:relative}
.typeahead.dropdown-menu{position:absolute;z-index:20;left:0;right:0;top:100%!important;margin:4px 0 0;padding:4px;list-style:none;background:#ffffff;border:1px solid #dfdfdf;border-radius:8px;box-shadow:0 12px 30px #1c1c1c14;max-height:260px;overflow:auto}
.typeahead.dropdown-menu li a{display:block;padding:9px 10px;font-size:13px;border-radius:6px;color:#191919}
.typeahead.dropdown-menu li.active a,.typeahead.dropdown-menu li a:hover{background:#f3f3f3}

/* Google'i nupp renderdab Google; hoiame ruumi, et paigutus ei hüppaks */
.google-slot{min-height:44px;display:flex;justify-content:center}
.google-slot>div{width:100%;display:flex;justify-content:center}
/* kavandi üldine `svg{width:24px;height:24px}` venitaks Google'i 18px G-logo; taastame Google'i enda mõõdud */
.google-slot svg{width:18px;height:18px;display:block}

/* teenusevalik (kontekst puudub) */
.service-list{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.service-list a,.service-list span.item{display:flex;align-items:center;gap:12px;background:#f9f9f9;border:1px solid #e5e5e5;border-radius:8px;padding:10px 13px;font-size:14px;color:#191919;min-height:52px}
.service-list a:hover{background:#f1f1f1}
.service-list img{width:34px;height:30px;object-fit:contain;flex-shrink:0}
.service-list .arrow{margin-left:auto;color:#747474}
.service-list .note{margin-left:auto;font-size:11px;color:#7f7f7f}

/* dialoogid */
dialog .dialog-actions{margin-top:22px}
dialog p{margin-top:0}

/* desktop: kontekstipaneel kaardi kõrval */
.context-panel{display:none}
@media(min-width:1100px){
  main{padding:24px 52px 64px}
  .page-grid{max-width:1200px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,600px);gap:64px;align-items:start}
  .context-panel{display:block;padding:8px 0;margin-top:92px;position:sticky;top:40px}
  .context-logo{width:72px;height:72px;border:1px solid #e5e5e5;border-radius:16px;background:#ffffff;display:grid;place-items:center;margin-bottom:28px}
  .context-logo img{max-width:52px;max-height:44px;object-fit:contain}
  .context-logo.wide{width:132px}
  .context-logo.wide img{max-width:108px}
  .context-logo svg{width:30px;height:30px;fill:none;stroke:#484848;stroke-width:1.5}
  .context-panel .eyebrow{font-size:14px;margin-bottom:10px}
  .context-panel h2{font-size:38px;line-height:1.15;letter-spacing:-1px;margin:0 0 18px;color:#191919}
  .context-panel .lead{font-size:17px;line-height:1.75;color:#595959;max-width:460px;margin:0 0 36px}
  .context-panel .group{border-top:1px solid #e5e5e5;padding-top:22px;max-width:460px}
  .context-panel .group p{font-size:12px;color:#7f7f7f;margin:0 0 14px;letter-spacing:.2px}
  .logo-row{display:flex;flex-wrap:wrap;gap:10px;list-style:none;margin:0;padding:0}
  .logo-row li{width:52px;height:44px;border:1px solid #e9e9e9;border-radius:10px;background:#ffffff;display:grid;place-items:center}
  .logo-row li.wide{width:84px}
  .logo-row img{max-width:36px;max-height:28px;object-fit:contain;filter:grayscale(1);opacity:.75}
  .logo-row li.wide img{max-width:66px}
  .logo-row li.current{border-color:#a4a4a4}
  .logo-row li.current img{filter:none;opacity:1}
  .page-grid .explanation{display:none}
}

/* Sisselogimisviisid on samas alas: ala kõrgus = kõrgeim paneel, nii et vahelehe vahetus
   ei muuda kaardi suurust ega nihuta allpool olevat (Google'i nupp, lingid). */
.panels[data-equal-panels].is-ready{display:grid}
.panels[data-equal-panels].is-ready>[data-panel]{grid-area:1/1;align-self:start}
.panels[data-equal-panels].is-ready>[data-panel].is-inactive{visibility:hidden;pointer-events:none}

/* Telefonis kasutab ruumi ainult aktiivne vorm. */
@media(max-width:560px){
  .site-header{padding:10px 16px}
  main{padding:0 12px 24px}
  .back-link{min-height:44px;margin-bottom:4px}
  .destination{padding:14px 20px}
  .card-content{padding:20px}
  .intro{margin-bottom:18px}
  .method-tabs,.method-tabs.without-card{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:20px}
  .method-tabs.without-card #tab-email{grid-column:1 / -1}
  .language,.account-info{min-width:44px;min-height:44px}
  .password-wrap button,dialog .password-wrap button{top:3px;right:6px;min-width:52px;min-height:44px}
  .forgot{display:flex;align-items:center;min-height:44px;margin:4px 0 8px auto}
  .remember{min-height:44px;margin-bottom:12px}
  .signup{padding-top:14px;margin-top:16px}
  .signup .text-link{display:inline-flex;align-items:center;min-height:44px}
  .explanation{margin-top:12px}
  .explanation summary{min-height:44px}
  footer{padding:12px 16px;gap:4px}
  footer nav{gap:20px;flex-wrap:wrap;justify-content:center}
  footer nav a,footer button{display:inline-flex;align-items:center;min-height:44px;font-size:13px}
}

/* Keelevalik */
.lang-menu{position:relative}
.language[aria-expanded=true]{border-color:#a4a4a4;background:#ffffff}
.lang-list{position:absolute;right:0;top:calc(100% + 6px);z-index:30;min-width:168px;margin:0;padding:5px;list-style:none;background:#ffffff;border:1px solid #e3e3e3;border-radius:8px;box-shadow:0 12px 30px #1c1c1c1a}
.lang-list button{display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px;border:0;border-radius:6px;background:none;font-size:13px;color:#191919;text-align:left}
.lang-list button:hover,.lang-list button:focus-visible{background:#f3f3f3;outline:none}
.lang-list button .lang-code{margin-left:auto;font-size:11px;font-weight:600;color:#7f7f7f}
.lang-list button[aria-checked=true]{font-weight:600}
.lang-list button[aria-checked=true]::before{content:'✓';width:12px;color:#454545}
.lang-list button[aria-checked=false]::before{content:'';width:12px}

/* Must-valge, rahulik kujundus: teenuste logod väikesed ja halltoonides (favicon-mõõdus). */
.destination-symbol{width:32px;height:32px}
.destination-symbol img,.context-logo img,.service-list img,.flow-context img{filter:grayscale(1) contrast(1.05);opacity:.9}
.destination-symbol img{max-height:26px}
.destination-symbol.wide-logo{width:56px}
.destination-symbol.wide-logo img{max-height:18px}
.service-list img{width:24px;height:20px}
.form-error,.form-success{border-left:3px solid #191919}
.form-error{font-size:14px!important;background:#fff3f2;border-color:#ebc4bf;border-left-color:#b64b43;color:#87352e!important}
@media(min-width:1100px){
  .context-logo{width:52px;height:52px;border-radius:12px;margin-bottom:24px}
  .context-logo img{max-width:30px;max-height:28px}
  .context-logo.wide{width:84px}
  .context-logo.wide img{max-width:64px;max-height:20px}
}

/* Vea viide: väike hall rida, mille järgi kasutajatugi leiab serveri logist täpse põhjuse. */
.error-ref{font-size:11px;line-height:1.5;color:#8a8a8a;margin:-12px 0 22px}
.error-ref span{font-family:ui-monospace,Consolas,monospace;letter-spacing:.5px;user-select:all}
.form-error .error-ref{display:block;margin:6px 0 0}
