:root {
  --dark-background: #161616;
  --background-gradient: linear-gradient(145deg, #fff 0%, #909090 100%);
  --button-color: #fff;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;

  background: var(--dark-background);
  height: 100vh;
  width: 100vw;

  margin: 0px;
  padding: 0px;

  overflow: hidden;
  position: relative;
}

header {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;

  width: 100%;
}

header .avatar {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
}

header .avatar .cv-image {
  border: 3px solid #b1b1b1;
  box-shadow: var(--button-color) 0px 0px 10px 0px;
  border-radius: 50%;
  width: 8vh;
}

header .avatar .cv-info {
  margin-left: 1.5vh;
  margin-right: 1.5vh;

  text-align: center;
}

header .avatar .cv-info .cv-name {
  color: white;
  text-shadow: 0px 0px 2px white;
  font-size: 1rem;
  font-weight: 600;
}

header .avatar .cv-info .cv-job {
  margin-top: 0.5vh;
  color: white;
  text-shadow: 0px 0px 2px white;
  font-size: 0.65rem;
  font-weight: 600;
}

.gradient-base {
  display: flex;
  align-items: center;
  justify-content: center;
  align-content: center;
  flex-wrap: nowrap;
  flex-direction: column;

  background: var(--background-gradient);
  animation: gradient 60s linear infinite;
  padding: 0.3vh;
  width: 45vh;
  max-width: 85vw;
  min-height: 55vh;
  border-radius: 16px;

  box-shadow: 0 0 10px 0px var(--button-color);
}

.gradient-base .login-form {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  flex-wrap: nowrap;
  align-items: center;

  background: var(--dark-background);
  width: 45vh;
  max-width: 85vw;
  min-height: 55vh;
  border-radius: 16px;
}

.gradient-base .login-form .title {
  text-align: center;
  font-size: 2.4rem; /* دقیق‌تر از vh */
  font-weight: 700;
  color: #ffffff;
  margin-top: 2.5vh;
  margin-bottom: 2vh;
}

.gradient-base .login-form .inputs {
  display: flex;
  flex-direction: column;
  gap: 1.4vh;
  padding: 0 3vh;
  margin-top: 1vh;
  width: 90%;
}

.gradient-base .login-form .inputs div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6vh;
}

.gradient-base .login-form .inputs label {
  font-size: 1.5vh;
  color: #d0d0d0;
  width: 100%;
}

.gradient-base .login-form .inputs input {
  padding: 1.2vh 1.6vh;
  background-color: #2b2b2b;
  border: 1px solid #444;
  border-radius: 8px;
  font-size: 1.65vh;
  color: #f0f0f0;
  width: 75%;
  text-align: center;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.gradient-base .login-form .inputs input:focus {
  border-color: var(--button-color);
  background-color: #333;
  outline: none;
}

.gradient-base .login-form .main-button {
  display: flex;
  justify-content: center;
  margin-top: 2.5vh;

  width: 90%;
}

.gradient-base .login-form .main-button button {
  background-color: var(--button-color);
  color: #000;
  font-size: 1.6vh;
  font-weight: 600;
  padding: 1.1vh 3.5vh;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;

  width: 85%;
}

.gradient-base .login-form .main-button button:hover {
  background-color: #bebebe;
}

.gradient-base .login-form .questions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1vh;
  margin-top: 1.5vh;
  margin-bottom: 1.5vh;
}

.gradient-base .login-form .questions a {
  font-size: 1.3vh;
  color: #bbbbbb;
  text-decoration: none;
  transition: color 0.2s ease;
}

.gradient-base .login-form .questions a:hover {
  color: #ffffff;
}

.language {
  margin-top: 3vh;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.language .custom-select {
  position: relative;
}

.language .selected-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;

  width: 20vh;
  border: 2px solid var(--button-color);
  border-radius: 8px;

  padding: 1vh;
  background-color: transparent;

  cursor: pointer;
  color: white;
}

.language .selected-option img {
  height: 2.5vh;
  margin: 0 1vh;
}

.language .options-list {
  position: absolute;
  top: 100%;
  left: 0;

  width: 100%;
  list-style: none;

  padding: 0;
  margin: 0;

  border: 2px solid #2657a4;
  border-radius: 8px;

  background: #fff;
  color: #000;

  display: none;
  z-index: 999;
}

.language .options-list li {
  display: flex;
  align-items: center;

  padding: 1vh;
  cursor: pointer;
  transition: background 0.3s ease;
}

.language .options-list li img {
  height: 2.5vh;
  margin: 0 1vh;
}

.language .options-list li:hover {
  background: #95baff;
}

.codes {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.codes input {
  width: 45px;
  height: 55px;
  font-size: 24px;
  text-align: center;
  border: 2px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: "Vazirmatn", sans-serif;
}

.codes input:focus {
  border-color: #f700ff;
  box-shadow: 0 0 5px rgba(247, 0, 255, 0.6);
}

@media only screen and (max-width: 1050px) {
}

@keyframes gradient {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 19em 32em;
  }
  100% {
    background-position: 0.1em 0.1em;
  }
}
