/* 统一高度设置 */
:root {
  --input-height: 46px; /* 统一控制高度 */
}
.login-page {
  min-height: calc(100vh);
  background: linear-gradient(180deg, #726ead 0%, #bbc4e3 100%);
  padding: 40px 15px;
  display: flex;
  flex-direction: column;

  .login-header {
    color: #fff;
    margin-bottom: 20px;

    h1 {
      font-size: 32px;
      font-weight: 600;
      margin: 0 0 8px;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    p {
      font-size: 14px;
      margin: 0;
      opacity: 0.9;
    }
  }
  .login-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -60%);
    width: calc(100vw - 30px);
  }

  .login-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;

    h2 {
      font-size: 20px;
      font-weight: 500;
      color: #333;
      margin: 0 0 24px;
    }

    .login-form {
      .form-item {
        margin-bottom: 20px;

        .label {
          font-size: 14px;
          color: #666;
          margin-bottom: 8px;
          font-weight: 800;
        }

        .input-container {
          position: relative;
          display: flex;
          align-items: center;

          .phone-icon,
          .shield-icon {
            position: absolute;
            left: 12px;
            width: 20px;
            height: 20px;
            background-size: contain;
            background-repeat: no-repeat;
          }

          .phone-icon {
            width: 25px;
            height: 25px;
            background-image: url('data:image/svg+xml;utf8,<svg t="1755848332958" class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="512" height="512"><path d="M682.666667 170.666667H341.333333c-47.786667 0-85.333333 37.546667-85.333333 85.333333v512c0 47.786667 37.546667 85.333333 85.333333 85.333333h341.333334c47.786667 0 85.333333-37.546667 85.333333-85.333333V256c0-47.786667-37.546667-85.333333-85.333333-85.333333z m51.2 597.333333c0 29.013333-22.186667 51.2-51.2 51.2H341.333333c-29.013333 0-51.2-22.186667-51.2-51.2v-85.333333h443.733334v85.333333zM290.133333 648.533333h443.733334v-341.333333H290.133333v341.333333z m443.733334-375.466666H290.133333V256c0-29.013333 22.186667-51.2 51.2-51.2h341.333334c29.013333 0 51.2 22.186667 51.2 51.2v17.066667z m-221.866667 512c18.773333 0 34.133333-15.36 34.133333-34.133334 0-18.773333-15.36-34.133333-34.133333-34.133333-18.773333 0-34.133333 15.36-34.133333 34.133333 0 18.773333 15.36 34.133333 34.133333 34.133334z" fill="%23bfbfbf"></path></svg>');
          }

          .shield-icon {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4z'/%3E%3C/svg%3E");
          }

          .custom-input {
            flex: 1;
            width: 100%;
            height: 48px;
            padding: 0 12px 0 40px;
            border: 1px solid #ddd;
            border-radius: 12px;
            font-size: 15px;
            box-sizing: border-box;
            transition: border-color 0.3s;

            &::placeholder {
              color: #999;
            }

            &:focus {
              background: #f7f7f8;
            }
          }
        }

        .code-container {
          display: flex;
          gap: 12px;

          .input-container {
            flex: 1;
          }

          .code-btn {
            background: rgba(124, 58, 237, 0.1);
            color: #7c3aed;
            white-space: nowrap;
            padding: 0 15px;
            flex-shrink: 0;
            height: var(--input-height);
            border: none;
            border-radius: 12px;
            font-size: 15px;
            font-weight: 500;
            transition: all 0.3s;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;

            &:disabled {
              opacity: 0.5;
              cursor: not-allowed;
            }
          }
        }
      }

      .submit-btn {
        background: linear-gradient(to right, #7c3aed, #3b82f6);
        color: white;
        width: 100%;
        padding: 0;
        margin-top: 10px;
        height: 48px;
        border: none;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 500;
        transition: all 0.3s;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;

        &:active {
          opacity: 0.9;
        }
      }

      .agreement-section {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        color: #666;

        .checkbox-wrapper {
          display: flex;
          align-items: center;
          cursor: pointer;

          input[type="checkbox"] {
            width: 14px;
            height: 14px;
            margin-right: 4px;
            cursor: pointer;
          }

          span {
            margin-right: 2px;
          }
        }

        .agreement-link {
          color: #666;
          text-decoration: none;
        }
      }
    }
  }
}
