:root{
  --teal:#1ab9a8;
  --teal-hover:#159690;
  --teal-dark:#0d8077;
  --bg-light-teal:#f0fffe;
  --bg-vlight-teal:#e0f7f5;
  --off-white:#f9fffe;
  --white:#ffffff;
  --border:#e0f7f5;
  --border-2:#d0d0d0;
  --text:#333333;
  --text-med:#555555;
  --text-secondary:#777777;
  --text-light:#999999;
}
*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent;}
html,body{height:100%;}
body{
  font-family:'Inter',system-ui,sans-serif;
  background:
    radial-gradient(120% 70% at 50% -5%, var(--bg-light-teal) 0%, transparent 55%),
    var(--off-white);
  color:var(--text);
  min-height:100dvh;
  display:flex;
  justify-content:center;
  align-items:stretch;
}
.phone{
  width:100%;
  max-width:412px;
  min-height:100dvh;
  margin:0 auto;
  padding:28px 26px calc(28px + env(safe-area-inset-bottom));
  display:flex;
  flex-direction:column;
  position:relative;
  overflow:hidden;
}

.logo-wrap{
  margin-top:34px;
  display:flex;
  justify-content:center;
  position:relative;
  z-index:1;
}
.logo{
  width:210px;
  height:auto;
  display:block;
  filter:drop-shadow(0 14px 30px rgba(26,185,168,.22));
}

.greeting{
  margin-top:22px;
  text-align:center;
}
.greeting .hi{
  font-family:'Sora',sans-serif;
  font-size:13px;
  letter-spacing:.34em;
  text-transform:uppercase;
  color:var(--teal);
  font-weight:600;
}
.greeting h1{
  font-family:'Sora',sans-serif;
  font-size:30px;
  font-weight:700;
  line-height:1.12;
  margin-top:8px;
  letter-spacing:-.01em;
  color:var(--text);
}
.greeting h1 .name{color:var(--teal-dark);}
.greeting p{
  margin-top:10px;
  font-size:14px;
  color:var(--text-secondary);
}

form{
  margin-top:30px;
  display:flex;
  flex-direction:column;
  gap:16px;
  position:relative;
  z-index:1;
}
.field label{
  display:block;
  font-size:12px;
  font-weight:600;
  letter-spacing:.04em;
  color:var(--text-med);
  margin-bottom:8px;
  padding-left:2px;
}
.input-shell{
  display:flex;
  align-items:center;
  gap:11px;
  background:var(--white);
  border:1.5px solid var(--border);
  border-radius:14px;
  padding:0 15px;
  height:54px;
  transition:border-color .18s ease, box-shadow .18s ease;
}
.input-shell:focus-within{
  border-color:var(--teal);
  box-shadow:0 0 0 4px rgba(26,185,168,.13);
}
.input-shell > svg{flex-shrink:0;color:var(--teal);}
.input-shell input{
  flex:1;
  background:transparent;
  border:none;
  outline:none;
  color:var(--text);
  font-size:15.5px;
  font-family:inherit;
  height:100%;
}
.input-shell input::placeholder{color:var(--text-light);}
.toggle-pw{
  background:none;border:none;cursor:pointer;
  color:var(--text-light);display:flex;padding:4px;
}
.toggle-pw:hover{color:var(--teal);}

.row-aux{
  display:flex;
  justify-content:flex-end;
  margin-top:-4px;
}
.link{
  color:var(--teal);
  text-decoration:none;
  font-size:13px;
  font-weight:600;
  transition:color .15s ease;
}
.link:hover{color:var(--teal-hover);}

.btn-login{
  margin-top:6px;
  height:54px;
  border:none;
  border-radius:14px;
  cursor:pointer;
  font-family:'Sora',sans-serif;
  font-size:16px;
  font-weight:600;
  letter-spacing:.01em;
  color:#ffffff;
  background:var(--teal);
  box-shadow:0 10px 24px -8px rgba(26,185,168,.55);
  transition:background .18s ease, transform .12s ease, box-shadow .18s ease;
}
.btn-login:hover{background:var(--teal-hover);box-shadow:0 12px 28px -8px rgba(21,150,144,.6);}
.btn-login:active{transform:translateY(1px) scale(.995);}
.btn-login:focus-visible{outline:3px solid var(--teal);outline-offset:3px;}

.divider{
  display:flex;align-items:center;gap:14px;
  margin:24px 0 16px;
  color:var(--text-light);
  font-size:12px;letter-spacing:.08em;
}
.divider::before,.divider::after{
  content:"";flex:1;height:1px;background:var(--border);
}

.btn-create{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:52px;
  border-radius:14px;
  border:1.5px solid var(--teal);
  background:var(--white);
  color:var(--teal-dark);
  font-family:'Sora',sans-serif;
  font-size:15px;
  font-weight:600;
  cursor:pointer;
  transition:background .18s ease, color .18s ease;
  text-decoration:none;
}
.btn-create:hover{background:var(--bg-vlight-teal);color:var(--teal-hover);}
.btn-create:focus-visible{outline:3px solid var(--teal);outline-offset:3px;}

.error {
  background: #fee;
  color: #c0392b;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #e74c3c;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.info {
  color: #1ab9a8;
  background: #e0f7f5;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  border-left: 4px solid #1ab9a8;
  position: relative;
  z-index: 1;
}

/* Breakpoint: Extra small devices (< 360px) */
@media (max-width: 359px) {
  .phone {
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  }

  .logo {
    width: 160px;
  }

  .logo-wrap {
    margin-top: 24px;
  }

  .greeting {
    margin-top: 16px;
  }

  .greeting .hi {
    font-size: 11px;
    letter-spacing: 0.3em;
  }

  .greeting h1 {
    font-size: 24px;
    margin-top: 6px;
  }

  .greeting p {
    margin-top: 8px;
    font-size: 13px;
  }

  form {
    margin-top: 24px;
    gap: 14px;
  }

  .field label {
    font-size: 11px;
  }

  .input-shell {
    height: 48px;
    padding: 0 12px;
    gap: 8px;
  }

  .input-shell svg {
    width: 16px;
    height: 16px;
  }

  .input-shell input {
    font-size: 14px;
  }

  .toggle-pw {
    padding: 2px;
  }

  .toggle-pw svg {
    width: 16px;
    height: 16px;
  }

  .btn-login {
    height: 48px;
    font-size: 14px;
    margin-top: 4px;
  }

  .divider {
    margin: 18px 0 12px;
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .btn-create {
    height: 48px;
    font-size: 14px;
  }
}

/* Breakpoint: Small devices (360px - 480px) */
@media (min-width: 360px) and (max-width: 480px) {
  .phone {
    padding: 24px 18px calc(24px + env(safe-area-inset-bottom));
  }

  .logo {
    width: 180px;
  }

  .logo-wrap {
    margin-top: 28px;
  }

  .greeting {
    margin-top: 18px;
  }

  .greeting .hi {
    font-size: 12px;
    letter-spacing: 0.32em;
  }

  .greeting h1 {
    font-size: 26px;
    margin-top: 7px;
  }

  .greeting p {
    margin-top: 9px;
    font-size: 13px;
  }

  form {
    margin-top: 26px;
    gap: 15px;
  }

  .field label {
    font-size: 11px;
    margin-bottom: 7px;
  }

  .input-shell {
    height: 50px;
    padding: 0 14px;
    gap: 10px;
    border-radius: 12px;
  }

  .input-shell svg {
    width: 18px;
    height: 18px;
  }

  .input-shell input {
    font-size: 14px;
  }

  .toggle-pw {
    padding: 3px;
  }

  .toggle-pw svg {
    width: 18px;
    height: 18px;
  }

  .btn-login {
    height: 50px;
    font-size: 15px;
    margin-top: 5px;
  }

  .divider {
    margin: 20px 0 14px;
    font-size: 11px;
    letter-spacing: 0.07em;
  }

  .btn-create {
    height: 50px;
    font-size: 14px;
  }
}

/* Breakpoint: Medium devices (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .phone {
    max-width: 480px;
    padding: 32px 28px calc(32px + env(safe-area-inset-bottom));
  }

  .logo {
    width: 220px;
  }

  .logo-wrap {
    margin-top: 36px;
  }

  .greeting {
    margin-top: 24px;
  }

  .greeting .hi {
    font-size: 13px;
  }

  .greeting h1 {
    font-size: 32px;
    margin-top: 9px;
  }

  .greeting p {
    margin-top: 11px;
    font-size: 15px;
  }

  form {
    margin-top: 32px;
    gap: 16px;
  }

  .field label {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .input-shell {
    height: 56px;
    padding: 0 16px;
    gap: 12px;
    border-radius: 15px;
  }

  .input-shell svg {
    width: 20px;
    height: 20px;
  }

  .input-shell input {
    font-size: 16px;
  }

  .toggle-pw {
    padding: 4px;
  }

  .toggle-pw svg {
    width: 20px;
    height: 20px;
  }

  .btn-login {
    height: 56px;
    font-size: 16px;
    margin-top: 6px;
  }

  .divider {
    margin: 26px 0 16px;
    font-size: 12px;
  }

  .btn-create {
    height: 54px;
    font-size: 15px;
  }
}

/* Breakpoint: Large devices (769px+) */
@media (min-width: 769px) {
  .phone {
    max-width: 500px;
    padding: 36px 32px calc(36px + env(safe-area-inset-bottom));
  }

  .logo {
    width: 240px;
  }

  .logo-wrap {
    margin-top: 40px;
  }

  .greeting {
    margin-top: 26px;
  }

  .greeting .hi {
    font-size: 13px;
  }

  .greeting h1 {
    font-size: 34px;
    margin-top: 10px;
  }

  .greeting p {
    margin-top: 12px;
    font-size: 15px;
  }

  form {
    margin-top: 34px;
    gap: 17px;
  }

  .field label {
    font-size: 12px;
  }

  .input-shell {
    height: 56px;
    padding: 0 16px;
  }

  .input-shell:focus-within {
    box-shadow: 0 0 0 4px rgba(26, 185, 168, 0.13);
  }

  .btn-login {
    height: 56px;
    font-size: 16px;
    margin-top: 8px;
  }

  .btn-login:hover {
    transform: translateY(-1px);
  }

  .divider {
    margin: 28px 0 18px;
  }

  .btn-create {
    height: 54px;
    font-size: 15px;
  }

  .btn-create:hover {
    transform: translateY(-1px);
  }
}
