/* Login Page Styles - Based on Figma Design */

:root {
  --primary-red: #88050a;
  --dark-red: #440b0d;
  --dark-text: #050505;
  --white: #ffffff;
  --text-light: rgba(255, 255, 255, 0.8);
  --border-color: #690004;
  --button-red: #050505;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: var(--primary-red);
  color: var(--white);
  min-height: 100vh;
}

.login-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
  overflow: hidden;
  position: relative;
}

/* Cat illustration */
.login-cat {
  position: absolute;
  bottom: -220px;
  left: -30px;
  width: 1500px;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

/* Header */
.login-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  width: 100%;
  z-index: 1;
}

.logo {
  font-size: 25px;
  font-weight: bold;
  color: var(--white);
  margin: 0;
}

.registration-link {
  font-size: 18px;
  font-weight: bold;
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.2s ease;
  margin-left: auto;
}

.registration-link:hover {
  opacity: 0.8;
}

/* Login Container */
.login-container {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  position: relative;
  z-index: 1;
}

/* Title */
.login-title {
  font-size: 48px;
  font-weight: normal;
  text-align: center;
  margin: 0;
  color: var(--white);
  font-family: 'Times New Roman', Times, serif;
  letter-spacing: 2px;
  transform: scaleY(1.4);
  transform-origin: center;
}

/* Form */
.login-form {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Form Group */
.form-group {
  position: relative;
  width: 100%;
}

.form-label {
  display: block;
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 12px;
  font-weight: normal;
}

/* Input Fields */
.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--white);
  padding: 12px 0;
  font-size: 16px;
  color: var(--white);
  outline: none;
  font-family: Arial, sans-serif;
  transition: border-color 0.2s ease;
}

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

.form-input:focus {
  border-bottom-color: var(--white);
}

.form-line {
  height: 1px;
  background: transparent;
  margin-top: 8px;
}

/* Password Input Wrapper */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper .form-input {
  padding-right: 36px;
}

.password-toggle {
  position: absolute;
  right: 0;
  bottom: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.password-toggle:hover {
  opacity: 1;
}

.eye-icon {
  display: block;
}

/* Error Message */
.form-error {
  display: none;
  color: #ff6b6b;
  font-size: 14px;
  margin-top: -16px;
  margin-bottom: 8px;
}

.form-error[data-show="true"] {
  display: block;
}

/* Login Button */
.login-button {
  width: 100%;
  height: 72px;
  background-color: var(--button-red);
  color: var(--white);
  border: none;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 16px;
}

.login-button:hover {
  background-color: #1a1a1a;
}

.login-button:active {
  background-color: var(--button-red);
}

/* Divider */
.login-divider {
  text-align: center;
  font-size: 16px;
  color: var(--white);
  margin: 16px 0;
}

/* Social Buttons */
.social-buttons {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-top: 16px;
}

.social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border: 1px solid var(--border-color);
  background-color: transparent;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.social-button:hover {
  border-color: var(--white);
  background-color: rgba(255, 255, 255, 0.05);
}

.social-button img {
  width: 39px;
  height: 39px;
  object-fit: contain;
}

.vk-button {
  margin-left: -30px;
}

.yandex-button {
  margin-right: -30px;
}

/* Footer */
.login-footer {
  position: absolute;
  bottom: 40px;
  right: 40px;
}

.support-link {
  font-size: 18px;
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  margin: 0;
  transition: opacity 0.2s ease;
}

.support-link:hover {
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .login-page {
    padding: 100px 20px 60px;
  }

  .login-header {
    padding: 16px 20px;
  }

  .logo {
    font-size: 20px;
  }

  .registration-link {
    font-size: 16px;
  }

  .login-title {
    font-size: 36px;
  }

  .login-container {
    gap: 24px;
  }

  .login-form {
    max-width: 100%;
  }

  .form-label {
    font-size: 18px;
  }

  .form-input {
    font-size: 16px;
  }

  .login-button {
    height: 60px;
    font-size: 18px;
  }

  .social-buttons {
    gap: 20px;
  }

  .social-button {
    width: 70px;
    height: 70px;
  }

  .social-button img {
    width: 30px;
    height: 30px;
  }

  .vk-button {
    margin-left: 0;
  }

  .yandex-button {
    margin-right: 0;
  }

  .login-footer {
    bottom: 20px;
    right: 20px;
  }

  .support-link {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .login-header {
    padding: 12px 16px;
  }

  .logo {
    font-size: 18px;
  }

  .registration-link {
    font-size: 14px;
  }

  .login-title {
    font-size: 28px;
    letter-spacing: 1px;
  }

  .login-form {
    gap: 20px;
  }

  .form-label {
    font-size: 16px;
  }

  .login-button {
    height: 50px;
    font-size: 16px;
  }

  .social-buttons {
    gap: 15px;
  }

  .social-button {
    width: 60px;
    height: 60px;
  }

  .social-button img {
    width: 25px;
    height: 25px;
  }
}
