@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  --primary-color: #4361ee;
  --secondary-color: #3a0ca3;
  --accent-color: #4895ef;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --error-color: #ef233c;
  --success-color: #4cc9f0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.screen {
  background: white;
  position: relative;
  height: 600px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  overflow: hidden;
}

.screen__content {
  z-index: 1;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.screen__background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  -webkit-clip-path: inset(0 0 0 0);
  clip-path: inset(0 0 0 0);
}

.screen__background__shape {
  transform: rotate(45deg);
  position: absolute;
  opacity: 0.1;
}

.screen__background__shape1 {
  height: 520px;
  width: 520px;
  background: var(--primary-color);
  top: -50px;
  right: 120px;
  border-radius: 0 72px 0 0;
}

.screen__background__shape2 {
  height: 220px;
  width: 220px;
  background: var(--secondary-color);
  top: -172px;
  right: 0;
  border-radius: 32px;
}

.screen__background__shape3 {
  height: 540px;
  width: 190px;
  background: linear-gradient(270deg, var(--primary-color), var(--accent-color));
  top: -24px;
  right: 0;
  border-radius: 32px;
}

.screen__background__shape4 {
  height: 400px;
  width: 200px;
  background: var(--accent-color);
  top: 420px;
  right: 50px;
  border-radius: 60px;
}

.login {
  width: 100%;
  padding: 40px;
  padding-top: 100px;
  flex: 1;
}

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

.login__header h1 {
  color: var(--dark-color);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.login__header p {
  color: #6c757d;
  font-size: 14px;
}

.login__field {
  padding: 15px 0;
  position: relative;
}

.login__icon {
  position: absolute;
  top: 30px;
  left: 0;
  color: var(--primary-color);
}

.login__input {
  border: none;
  border-bottom: 1px solid #ced4da;
  background: none;
  padding: 10px 0;
  padding-left: 30px;
  font-weight: 500;
  width: 100%;
  transition: all 0.3s;
  color: var(--dark-color);
}

.login__input:active,
.login__input:focus,
.login__input:hover {
  outline: none;
  border-bottom-color: var(--primary-color);
}

.login__submit {
  background: var(--primary-color);
  font-size: 14px;
  margin-top: 30px;
  padding: 16px 20px;
  border-radius: 8px;
  border: none;
  text-transform: uppercase;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: white;
  box-shadow: 0 4px 6px rgba(67, 97, 238, 0.2);
  cursor: pointer;
  transition: all 0.3s;
}

.login__submit:active,
.login__submit:focus,
.login__submit:hover {
  background: var(--secondary-color);
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(67, 97, 238, 0.3);
}

.button__icon {
  font-size: 20px;
  margin-left: 10px;
}

.social-login {
  padding: 20px;
  text-align: center;
  color: var(--dark-color);
  background: rgba(248, 249, 250, 0.8);
}

.social-login p {
  margin-bottom: 15px;
  font-size: 14px;
  color: #6c757d;
}

.social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.social-login__icon {
  padding: 10px;
  color: white;
  text-decoration: none;
  background: var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.social-login__icon:hover {
  transform: scale(1.1);
  background: var(--secondary-color);
}

/* Password toggle */
.login__field {
  position: relative;
}

#toggle-password {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  cursor: pointer;
  color: #6c757d;
  padding: 10px;
  transition: all 0.3s;
}

#toggle-password:hover {
  color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .screen {
    height: auto;
  }
  
  .login {
    padding: 30px;
    padding-top: 80px;
  }
}