/* Profile / Login & Register page */
:root {
  --profile-pink: #e91e8c;
  --profile-pink-hover: #c2187a;
  --profile-bg-input: #f5f5f5;
  --profile-border: #e0e0e0;
}

.profile-main {
  min-height: 60vh;
  padding: 48px 24px 64px;
}

.profile-inner {
  max-width: 960px;
  margin: 0 auto;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 768px) {
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .profile-main {
    padding: 32px 16px 48px;
  }
}

.profile-section {
  background: #fff;
}

.profile-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 28px;
  text-align: center;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 480px) {
  .profile-row {
    grid-template-columns: 1fr;
  }
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-field label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.profile-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.profile-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--profile-pink);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-input-wrap input {
  width: 100%;
  padding: 12px 14px 12px 44px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1a1a;
  background: var(--profile-bg-input);
  border: 1px solid var(--profile-border);
  border-radius: 8px;
  transition: border-color 0.2s, background 0.2s;
}

.profile-input-wrap:has(.profile-input-icon) input {
  padding-left: 44px;
}

.profile-row .profile-input-wrap input {
  padding-left: 14px;
}

.profile-row .profile-input-wrap .profile-input-icon {
  display: none;
}

.profile-input-wrap input::placeholder {
  color: #999;
}

.profile-input-wrap input:focus {
  outline: none;
  border-color: var(--profile-pink);
  background: #fff;
}

.profile-toggle-password {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 0;
  font-size: 13px;
  color: #666;
  background: none;
  border: none;
  cursor: pointer;
  align-self: flex-start;
  transition: color 0.2s;
}

.profile-toggle-password:hover {
  color: var(--profile-pink);
}

.profile-toggle-icon {
  flex-shrink: 0;
}

.profile-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

.profile-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.profile-checkbox-box {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 2px solid var(--profile-border);
  border-radius: 4px;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.profile-checkbox input:checked + .profile-checkbox-box {
  border-color: var(--profile-pink);
  background: var(--profile-pink);
}

.profile-checkbox input:checked + .profile-checkbox-box::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.profile-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--profile-pink);
  margin-top: -4px;
  transition: color 0.2s, text-decoration 0.2s;
}

.profile-link:hover {
  color: var(--profile-pink-hover);
  text-decoration: underline;
}

.profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--profile-pink);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}

.profile-btn:hover {
  background: var(--profile-pink-hover);
}

.profile-btn svg {
  flex-shrink: 0;
}

.profile-divider {
  text-align: center;
  font-size: 13px;
  color: #888;
  margin: 8px 0 4px;
}

.profile-btn-google {
  background: #fff;
  color: #333;
  border: 1px solid var(--profile-border);
}

.profile-btn-google:hover {
  background: #f9f9f9;
  border-color: #ccc;
}

.profile-btn-google svg {
  width: 20px;
  height: 20px;
}

.profile-account {
  max-width: 640px;
  margin: 0 auto;
}

.profile-account .profile-title {
  text-align: left;
}

.profile-account-section {
  margin-bottom: 28px;
}

.profile-account-heading {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 12px;
}

.profile-account-section p {
  margin: 0 0 8px;
  font-size: 14px;
  color: #555;
}

.profile-orders-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-order-item {
  padding: 12px 16px;
  background: var(--profile-bg-input);
  border-radius: 6px;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.profile-order-item-id {
  font-weight: 600;
}

.profile-orders-empty {
  margin: 0;
  font-size: 14px;
  color: #666;
}

.profile-btn-outline {
  background: transparent;
  color: var(--profile-pink);
  border: 1px solid var(--profile-pink);
}

.profile-btn-outline:hover {
  background: rgba(233, 30, 140, 0.08);
}
