/* Urbanist Font */
@font-face {
  font-family: 'Urbanist';
  src: url('/static/fonts/Urbanist-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Urbanist';
  src: url('/static/fonts/Urbanist-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Urbanist';
  src: url('/static/fonts/Urbanist-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Urbanist';
  src: url('/static/fonts/Urbanist-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Urbanist';
  src: url('/static/fonts/Urbanist-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Urbanist';
  src: url('/static/fonts/Urbanist-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Urbanist';
  src: url('/static/fonts/Urbanist-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Urbanist';
  src: url('/static/fonts/Urbanist-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Urbanist';
  src: url('/static/fonts/Urbanist-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Urbanist', sans-serif;
  background: #000;
  color: #fff;
  margin: 0;
  padding: 0;
}

/* Auth page styles */
.auth-page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/static/images/images/login-background-comp.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.auth-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.auth-content {
  position: relative;
  z-index: 2;
  width: 534px;
  height: 852px;
  background-image: url('/static/images/images/login-container-lg.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 50px;
  backdrop-filter: blur(10px);
}

.auth-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-header {
  text-align: center;
  margin-bottom: 40px;
}

.auth-info {
  margin-bottom: 20px;
  text-align: center;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.logo-img {
  width: 200px;
  height: auto;
  max-width: 100%;
}

h1 {
  color: #fff;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 15px;
  font-family: 'Urbanist', sans-serif;
}

.subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  font-weight: 300;
  margin: 0;
  font-family: 'Urbanist', sans-serif;
}

.auth-form {
  margin-bottom: 30px;
  text-align: right;
}

.form-field {
  position: relative;
  margin-bottom: 20px;
}

.form-field label {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}

.field-icon {
  width: 20px;
  height: 20px;
  opacity: 0.5;
  filter: brightness(0) saturate(100%) invert(100%);
}

.form-field input {
  width: 100%;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0 50px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Urbanist', sans-serif;
  transition: all 0.3s ease;
}

.form-field input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-field input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: #00D4FF;
}

.form-field input.has-error {
  border-color: #ff4444;
}

/* Fix Chrome autofill styles */
.form-field input:-webkit-autofill,
.form-field input:-webkit-autofill:hover,
.form-field input:-webkit-autofill:focus,
.form-field input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #222 inset !important;
  -webkit-text-fill-color: #fff !important;
  border: 1px solid #444 !important;
  transition: background-color 5000s ease-in-out 0s;
}

.form-field input:-moz-autofill {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

.form-field input:-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

.toggle-password {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  transition: opacity 0.3s ease;
}

.toggle-password .field-icon {
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.toggle-password:hover .field-icon {
  opacity: 0.8;
}

.paste-code {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  transition: opacity 0.3s ease;
}

.paste-code .field-icon {
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.paste-code:hover .field-icon {
  opacity: 0.8;
}

.forgot-password {
  display: inline-block;
  text-align: right;
  color: #00D4FF;
  font-size: 14px;
  margin-bottom: 20px;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.forgot-password:hover {
  opacity: 0.8;
}

.back-to-login {
  text-align: center;
}

.back-to-login a {
  color: #00D4FF;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Urbanist', sans-serif;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.back-to-login a:hover {
  opacity: 0.8;
}

.error-message, .alert-error {
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.3);
  border-radius: 6px;
  padding: 10px 15px;
  color: #ff4444;
  font-size: 14px;
  margin-bottom: 20px;
  font-family: 'Urbanist', sans-serif;
}

.error-message a {
  color: #00D4FF;
}

.success-message, .alert-success {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 6px;
  padding: 10px 15px;
  color: #00D4FF;
  font-size: 14px;
  margin-bottom: 20px;
  font-family: 'Urbanist', sans-serif;
}

.success-message a {
  color: #ffffff;
  text-decoration: underline;
}

.auth-button, .login-button, .register-button, .reset-button {
  width: 100%;
  height: 50px;
  color: #181A20;
  font-size: 16px;
  font-weight: 500;
  font-family: 'Urbanist', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  background-image: url('/static/images/images/button-primary-bg.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: none;
  margin-bottom: 20px;
}

.auth-button:hover:not(:disabled),
.login-button:hover:not(:disabled),
.register-button:hover:not(:disabled),
.reset-button:hover:not(:disabled) {
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.auth-button:disabled,
.login-button:disabled,
.register-button:disabled,
.reset-button:disabled {
  color: #8BDDFF;
  cursor: not-allowed;
  backdrop-filter: blur(14px);
  background: #D5F3FF33;
}

.sign-up-section {
  text-align: center;
}

.or-divider {
  display: block;
  color: #fff;
  font-size: 14px;
  margin-bottom: 20px;
  position: relative;
}

.or-divider::before,
.or-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 130px;
  height: 1px;
}

.or-divider::before {
  left: 10px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5));
}

.or-divider::after {
  right: 10px;
  background: linear-gradient(to left, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5));
}

.social-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.social-button {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.social-icon {
  width: 26px;
  height: 26px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.social-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.social-button:hover .social-icon {
  opacity: 1;
}

/* Additional form styles for register page */
.form-row {
  display: flex;
  gap: 15px;
}

.form-row .form-field {
  flex: 1;
}

/* Responsive design */
@media (max-width: 768px) {
  .auth-content {
    width: 345px;
    height: 638px;
    background-image: url('/static/images/images/login-container-sm.svg');
    padding: 50px 20px;
  }

  .auth-header {
    margin-bottom: 10px;
  }

  .auth-info {
    margin-bottom: 5px;
  }

  .logo-img {
    width: 150px;
  }

  h1 {
    font-size: 24px;
  }

  .subtitle {
    font-size: 14px;
  }

  .or-divider::before,
  .or-divider::after {
    width: 50px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .auth-form {
    margin-bottom: 0;
  }
}

@media (max-width: 380px) {
  .auth-content {
    width: 100%;
    height: auto;
    min-height: 100vh;
    padding: 40px 20px;
  }
}