:root{
  --main: #0aa39b;
  --main-dark: #087f79;
  --bg1: #e6fbfb;
  --bg2: #f5ffff;
  --text: #0d1b1a;
  --muted: #587675;
  --border: #d6ebea;
  --shadow: rgba(10, 163, 155, 0.25);
  --danger: #d93025;
  --success: #127a3f;
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

body{
  min-height: 100vh;
  background: radial-gradient(circle at top, var(--bg1), var(--bg2));
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.auth-container{
  width: 590px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  padding: 42px 42px;
  border-radius: 28px;
  box-shadow: 0 18px 55px rgba(0,0,0,0.10);
  border: 1px solid rgba(10, 163, 155, 0.10);
}

.logo-box{
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.logo-box img{
  width: 220px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,0.12));
  padding: 30px 0;
}

h1{
  text-align: center;
  font-size: 34px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 8px;
}

p.sub{
  text-align: center;
  color: var(--muted);
  margin-bottom: 22px;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 600;
}

.tabs{
  display: flex;
  gap: 10px;
  margin: 18px 0 26px;
  background: rgba(10, 163, 155, 0.08);
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(10, 163, 155, 0.12);
}

.tab-btn{
  flex: 1;
  border: none;
  padding: 13px;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 900;
  background: transparent;
  color: var(--muted);
  transition: 0.25s;
  font-size: 14px;
}

.tab-btn.active{
  background: white;
  color: var(--main-dark);
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}

.form-group{
  margin-bottom: 16px;
}

label{
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 900;
}

input{
  width: 100%;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  outline: none;
  transition: 0.2s;
  font-size: 15px;
  background: white;
}

input:focus{
  border-color: var(--main);
  box-shadow: 0 0 0 4px rgba(10,163,155,0.14);
}

.error{
  color: var(--danger);
  font-size: 12px;
  margin-top: 8px;
  display: none;
  font-weight: 800;
}

.password-wrap{
  position: relative;
}

.password-wrap input{
  padding-right: 52px;
}

.eye-btn{
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(10, 163, 155, 0.20);
  background: rgba(10, 163, 155, 0.06);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.eye-btn:hover{
  background: rgba(10, 163, 155, 0.12);
}

.eye-btn svg{
  width: 20px;
  height: 20px;
  fill: var(--main-dark);
  opacity: 0.95;
}

.btn{
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--main-dark), var(--main));
  border: none;
  color: white;
  font-weight: 900;
  border-radius: 20px;
  cursor: pointer;
  margin-top: 10px;
  font-size: 16px;
  transition: 0.25s;
  letter-spacing: 0.4px;
  box-shadow: 0 16px 30px var(--shadow);
}

.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(10, 163, 155, 0.30);
}

.msg{
  margin-top: 16px;
  padding: 14px;
  border-radius: 18px;
  font-size: 13px;
  display: none;
  font-weight: 900;
  text-align: center;
  border: 1px solid transparent;
}

.msg.success{
  background: #e9fff3;
  color: var(--success);
  border-color: rgba(18, 122, 63, 0.16);
}

.msg.fail{
  background: #ffecec;
  color: var(--danger);
  border-color: rgba(217, 48, 37, 0.15);
}

@media (max-width: 650px){
  .auth-container{
    width: 100%;
    padding: 30px 22px;
  }
  .logo-box img{
    width: 165px;
  }
  h1{
    font-size: 28px;
  }
}