:root {
  --primary-color: #4361ee;
  --primary-hover: #3a56d4;
  --error-color: #ef476f;
  --success-color: #06d6a0;
  --text-color: #2b2d42;
  --text-light: #8d99ae;
  --bg-color: #f8f9fa;
  --card-bg: #ffffff;
  --border-radius: 8px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 450px;
  padding: 20px;
}

.card {
  background: var(--card-bg);
  padding: 32px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  width: 100%;
  position: relative;
}

.brand {
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 1px;
  font-weight: 500;
}

.brand.top {
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--primary-color);
  letter-spacing: 3px;
  font-weight: 600;
}

/* .logo {
  text-align: center;
  margin-bottom: 16px;
  color: var(--primary-color);
}

.logo svg {
  width: 48px;
  height: 48px;
  stroke: var(--primary-color);
} */

.logo-container {
  text-align: center;
  margin-bottom: 10px;
}

.logo-image {
  width: 150px;
  height: auto;
  max-width: 100%;
}

h2 {
  margin-bottom: 16px;
  font-weight: 700;
  text-align: center;
  color: var(--text-color);
}

.description {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: 14px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 16px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-size: 14px;
  font-weight: 500;
}

input[name="new-password"] {
  padding: 14px 16px;
  font-size: 14px;
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius);
  transition: border-color 0.3s ease;
}

input[name="new-password"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
}

.btn-primary {
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  background: var(--primary-color);
  border: none;
  border-radius: var(--border-radius);
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: default;
}

.message {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  padding: 10px;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.message.error { 
  color: var(--error-color);
  background-color: rgba(239, 71, 111, 0.1);
}

.message.success { 
  color: var(--success-color);
  background-color: rgba(6, 214, 160, 0.1);
}

@media (max-width: 480px) {
  .card {
    padding: 24px;
  }
  
  .logo svg {
    width: 36px;
    height: 36px;
  }
  
  .brand.top {
    font-size: 12px;
    letter-spacing: 1.5px;
  }
}

.password-wrapper {
  position: relative;
}
.password-wrapper input {
  width: 100%;
  padding-right: 40px;
}
.toggle-password {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.success-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 16px;
  text-align: center; 
}

.success-container .icon-check {
  width: 48px;
  height: 48px;
  color: var(--success-color);
}

.success-container h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.success-container p {
  margin: 0;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
}

.success-container .btn-primary {
  padding: 12px 24px;
  font-size: 14px;
}

/* Localization */
.lang-switch {
  position: absolute;
  top: 1rem; right: 1rem; z-index: 1000;
  font-size: 0.85rem;
}
.lang-toggle {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .32rem .6rem;
  background: rgba(255,255,255,.9); backdrop-filter: blur(4px);
  border: 0; border-radius: 999px; cursor: pointer; font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.lang-toggle::after {
  content: ""; width: 0; height: 0; margin-left: .2rem;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #333;
  transition: transform .18s ease;
}
.lang-switch.open .lang-toggle::after { transform: rotate(180deg); }

.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 2.2rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(4px);
  list-style: none;
  margin: 0;
  padding: 0.3rem 0;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.lang-switch.open .lang-menu { display: block; }
.lang-menu a {
  display: block;
  padding: .45rem 1rem;
  text-decoration: none;
  text-align: center;
  color: #333;
  white-space: nowrap;
}
.lang-menu a:hover { background: #f2f3f5; }

.lang-current {
  font-weight: 400;
}

@media (max-width:600px){
  .lang-switch { top: .5rem; right: .5rem; }
  .lang-toggle { font-size: .8rem; padding: .28rem .5rem; }
}


