/* Profile page styles */

.profile-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.profile-card {
  background: #fff;
  border-radius: 3px;
  padding: 30px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.profile-meta {
  flex: 1;
}

.profile-name {
  font-family: "Noto Sans SC", sans-serif;
  color: #222;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.profile-subtitle {
  color: #666;
  font-size: 14px;
  margin-top: 5px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e8e8e8;
}

.profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Login/Register section */
#loginSection .auth-card {
  background: #fff;
  border-radius: 3px;
  padding: 40px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 30px;
}

.auth-tab {
  flex: 1;
  padding: 15px;
  border: none;
  background: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  color: #666;
  transition: all 0.2s;
}

.auth-tab.active {
  color: #1e73be;
  border-bottom: 2px solid #1e73be;
}

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

.form-group {
  margin-bottom: 20px;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

#loginSection input[type="text"],
#loginSection input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e8e8e8;
  border-radius: 3px;
  font-size: 14px;
  background: #fff;
  color: #222;
  transition: border-color 0.2s;
}

#loginSection input:focus {
  outline: none;
  border-color: #1e73be;
}

#loginSection label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.captcha-text,
#loginCaptchaText,
#regCaptchaText {
  padding: 10px 20px;
  background: #f5f5f5;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 3px;
  border-radius: 3px;
  color: #222;
  min-width: 110px;
  text-align: center;
}

#btnRefreshLoginCaptcha,
#btnRefreshRegCaptcha {
  background: transparent;
  border: 1px solid #e8e8e8;
  color: #666;
  padding: 8px 15px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

#btnRefreshLoginCaptcha:hover,
#btnRefreshRegCaptcha:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

#loginSection form button[type="submit"] {
  width: 100%;
  padding: 14px;
  background: #1e73be;
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

#loginSection form button[type="submit"]:hover {
  background: #155a8a;
}

.btn-block {
  width: 100%;
  height: auto;
  padding: 14px;
  font-size: 16px;
}

.hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .profile-container {
    padding: 15px !important;
  }

  #loginSection .auth-card {
    padding: 25px !important;
  }

  .auth-tab {
    font-size: 14px;
    padding: 12px;
  }
}