:root{
  --ame-blue:#147ff0;
  --ame-blue-dark:#075fca;
  --ame-navy:#0b2347;
  --ame-muted:#7b91a7;
  --ame-border:#1f86ca;
  --ame-danger:#b42318;
}
.ame-login-trigger{cursor:pointer}
button.ame-login-trigger{background:var(--ame-blue);color:#fff;border:0;border-radius:9px;padding:11px 20px;font-weight:800}
body.ame-auth-lock{overflow:hidden}
.ame-auth-overlay{
  position:fixed;inset:0;z-index:999999;display:none;align-items:center;justify-content:center;padding:34px 20px;
  background:
    linear-gradient(rgba(11,30,58,.26),rgba(7,24,48,.58)),
    url('aviation-login-bg.jpg') center/cover no-repeat;
  backdrop-filter:blur(1px);
}
.ame-auth-overlay.is-open{display:flex}
.ame-auth-modal{
  position:relative;width:min(820px,100%);max-height:94vh;overflow:auto;box-sizing:border-box;
  background:rgba(255,255,255,.97);border:1px solid rgba(255,255,255,.78);border-radius:20px;
  box-shadow:0 28px 90px rgba(1,19,45,.42);padding:48px 64px 46px;text-align:center;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}
.ame-auth-close{
  position:absolute;right:20px;top:16px;width:40px;height:40px;border:0;border-radius:50%;background:transparent;
  color:#6e8091;font-size:31px;line-height:38px;cursor:pointer;transition:.18s ease;
}
.ame-auth-close:hover{background:#eef5fb;color:#16385f}
.ame-flight-mark,.ame-footer-rule{display:flex;align-items:center;justify-content:center;gap:18px;color:var(--ame-blue)}
.ame-flight-mark{margin:0 0 20px}
.ame-flight-mark span{width:76px;height:2px;background:linear-gradient(90deg,transparent,var(--ame-blue))}
.ame-flight-mark span:last-child{background:linear-gradient(90deg,var(--ame-blue),transparent)}
.ame-flight-mark b{font-size:40px;line-height:1;transform:rotate(-4deg);font-weight:500}
.ame-auth-modal h2{margin:0;color:var(--ame-navy);font-size:clamp(31px,4.6vw,46px);line-height:1.14;font-weight:800;letter-spacing:-1.3px}
.ame-auth-subtitle{margin:22px 0 38px;color:#435a72;font-size:clamp(18px,2.3vw,24px);line-height:1.48;font-weight:500}
.ame-google-btn{
  width:100%;min-height:116px;box-sizing:border-box;display:grid;grid-template-columns:94px 1px 1fr;align-items:center;
  border-radius:18px;text-decoration:none!important;transition:transform .15s ease,box-shadow .15s ease,background .15s ease;
  overflow:hidden;padding:0 32px;
}
.ame-google-btn:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(8,74,139,.16)}
.ame-google-login{border:2px solid var(--ame-border);background:#fff;color:#071d3b}
.ame-google-login:hover{background:#f8fcff;color:#071d3b}
.ame-google-signup{border:2px solid #0f7ce9;background:linear-gradient(135deg,#1188f8,#0a73e3);color:#fff}
.ame-google-signup:hover{background:linear-gradient(135deg,#0d80ef,#0568cf);color:#fff}
.ame-google-g,.ame-google-white{display:flex;align-items:center;justify-content:center}
.ame-google-white{font-size:40px;font-weight:900;font-family:Arial,sans-serif;color:#fff}
.ame-btn-divider{width:1px;height:44px;background:rgba(91,121,151,.32)}
.ame-google-signup .ame-btn-divider{background:rgba(255,255,255,.36)}
.ame-google-btn strong{text-align:left;padding-left:34px;font-size:clamp(22px,3vw,31px);font-weight:800;letter-spacing:-.5px}
.ame-action-note{margin:12px 0 34px;color:#7891a7;font-size:clamp(15px,2vw,19px);line-height:1.45}
.ame-brand-footer{margin-top:38px;padding-top:6px}
.ame-footer-rule{gap:16px;color:#1479c8}
.ame-footer-rule span{height:1px;background:#d3e0ea;flex:1}
.ame-footer-rule b{font-size:26px;font-weight:500}
.ame-footer-title{margin-top:22px;color:#667f99;font-size:16px;font-weight:800;letter-spacing:3.6px}
 .ame-footer-site{margin-top:8px;color:#8297aa;font-size:14px;letter-spacing:1.2px;font-weight:600}
.ame-oauth-message{margin-top:20px;font-size:14px;font-weight:700;color:var(--ame-danger)}
.ame-oauth-message:empty{display:none}
.ame-config-warning{padding:18px 20px;border-radius:12px;background:#fff5e8;color:#7a4b00;line-height:1.5}
@media (min-width:701px) and (max-width:1024px){
  .ame-auth-overlay{padding:32px 24px}
  .ame-auth-modal{width:min(700px,92vw);max-height:90vh;padding:42px 48px 40px;border-radius:20px}
  .ame-auth-modal h2{font-size:38px}
  .ame-auth-subtitle{font-size:20px;margin:18px 0 30px}
  .ame-google-btn{min-height:96px;grid-template-columns:76px 1px 1fr;padding:0 26px}
  .ame-google-btn strong{font-size:25px;padding-left:26px}
  .ame-action-note{font-size:16px;margin:10px 0 28px}
  .ame-brand-footer{margin-top:30px}
}
@media(max-width:700px){
  .ame-auth-overlay{
    padding:24px 14px;
    background-position:62% center;
    align-items:center;
  }
  .ame-auth-modal{
    width:min(430px,calc(100vw - 28px));
    max-height:calc(100dvh - 48px);
    overflow:auto;
    padding:28px 18px 24px;
    border-radius:18px;
    box-shadow:0 20px 55px rgba(1,19,45,.38);
  }
  .ame-auth-close{right:8px;top:6px;width:36px;height:36px;font-size:28px;line-height:34px}
  .ame-flight-mark{margin-bottom:10px;gap:12px}
  .ame-flight-mark span{width:40px}
  .ame-flight-mark b{font-size:28px}
  .ame-auth-modal h2{font-size:clamp(25px,7vw,31px);line-height:1.12;letter-spacing:-.7px;padding:0 15px}
  .ame-auth-subtitle{margin:12px 0 20px;font-size:15px;line-height:1.42}
  .ame-desktop-break{display:none}
  .ame-google-btn{min-height:70px;grid-template-columns:52px 1px 1fr;padding:0 14px;border-radius:13px}
  .ame-google-g svg{width:27px;height:27px}
  .ame-google-white{font-size:30px}
  .ame-btn-divider{height:32px}
  .ame-google-btn strong{padding-left:14px;font-size:18px;letter-spacing:-.25px}
  .ame-action-note{margin:7px 4px 18px;font-size:12.5px;line-height:1.35}
  .ame-brand-footer{margin-top:20px;padding-top:2px}
  .ame-footer-rule{gap:12px}
  .ame-footer-rule b{font-size:21px}
  .ame-footer-title{margin-top:14px;font-size:11.5px;letter-spacing:2.2px}
  .ame-footer-site{margin-top:5px;font-size:11.5px;letter-spacing:.4px}
  .ame-oauth-message{margin-top:12px;font-size:12.5px}
}
@media(max-width:390px){
  .ame-auth-overlay{padding:20px 12px}
  .ame-auth-modal{width:calc(100vw - 24px);max-height:calc(100dvh - 40px);padding:25px 15px 21px}
  .ame-auth-modal h2{font-size:24px}
  .ame-auth-subtitle{font-size:14px;margin:10px 0 17px}
  .ame-google-btn{min-height:64px;grid-template-columns:46px 1px 1fr;padding:0 11px}
  .ame-google-btn strong{font-size:16.5px;padding-left:12px}
  .ame-action-note{font-size:11.5px;margin-bottom:15px}
  .ame-brand-footer{margin-top:16px}
}
@media(max-height:680px) and (max-width:700px){
  .ame-auth-overlay{padding:14px 12px}
  .ame-auth-modal{max-height:calc(100dvh - 28px);padding-top:20px;padding-bottom:18px}
  .ame-flight-mark{margin-bottom:6px}
  .ame-auth-modal h2{font-size:23px}
  .ame-auth-subtitle{margin:8px 0 14px;font-size:13px}
  .ame-google-btn{min-height:58px}
  .ame-action-note{margin:5px 3px 11px;font-size:11px}
  .ame-brand-footer{margin-top:12px}
  .ame-footer-title{margin-top:9px}
}

/* v5: compact desktop modal + button interaction */
@media (min-width:1025px){
  .ame-auth-overlay{padding:28px;}
  .ame-auth-modal{
    width:460px;
    max-width:calc(100vw - 56px);
    max-height:calc(100vh - 56px);
    padding:30px 34px 28px;
    border-radius:18px;
    overflow:auto;
  }
  .ame-flight-mark{margin-bottom:12px;gap:14px;}
  .ame-flight-mark span{width:54px;}
  .ame-flight-mark b{font-size:30px;}
  .ame-auth-modal h2{font-size:29px;line-height:1.16;letter-spacing:-.7px;}
  .ame-auth-subtitle{margin:13px 0 22px;font-size:15px;line-height:1.42;}
  .ame-google-btn{
    min-height:68px;
    grid-template-columns:54px 1px 1fr;
    padding:0 16px;
    border-radius:13px;
  }
  .ame-google-g svg{width:29px;height:29px;}
  .ame-google-white{font-size:30px;}
  .ame-btn-divider{height:32px;}
  .ame-google-btn strong{padding-left:16px;font-size:18px;letter-spacing:-.2px;}
  .ame-action-note{margin:8px 2px 17px;font-size:12px;line-height:1.35;}
  .ame-brand-footer{margin-top:18px;padding-top:2px;}
  .ame-footer-rule{gap:12px;}
  .ame-footer-rule b{font-size:20px;}
  .ame-footer-title{margin-top:12px;font-size:11px;letter-spacing:2.1px;}
  .ame-footer-site{margin-top:4px;font-size:11px;letter-spacing:.35px;}
}

.ame-google-btn{
  will-change:transform;
  transition:transform .25s ease,box-shadow .25s ease,background .25s ease,border-color .25s ease,filter .25s ease;
}
.ame-google-btn:hover{
  transform:translateY(-2px) scale(1.02);
  box-shadow:0 12px 28px rgba(8,74,139,.20);
}
.ame-google-btn:active{
  transform:translateY(0) scale(.98);
  box-shadow:0 5px 14px rgba(8,74,139,.14);
  transition-duration:.08s;
}
.ame-google-btn:focus-visible{
  outline:3px solid rgba(20,127,240,.25);
  outline-offset:3px;
}
