/**
 * Identity — Login / Register / Join
 */

.dc-identity-page,
.dc-join-page,
.dc-join-form-page {
    background: linear-gradient(135deg, #f7f7f9 0%, #eef0f5 100%);
    min-height: 70vh;
    padding: 60px 20px;
}

.dc-identity-shell {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.dc-join-shell {
    max-width: 1100px;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.dc-join-form-shell {
    max-width: 700px;
}

.dc-identity-header {
    text-align: center;
    margin-bottom: 30px;
}

.dc-identity-header h1 {
    font-size: 26px;
    margin: 0 0 8px;
    color: #1a1a1a;
}

.dc-identity-header p {
    color: #888;
    margin: 0;
    font-size: 14px;
}

/* Notices */
.dc-identity-notice {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    border-inline-start: 4px solid;
}

.dc-identity-notice--success {
    background: #f0fdf4;
    color: #166534;
    border-color: #22c55e;
}

.dc-identity-notice--error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #ef4444;
}

.dc-identity-notice--warning {
    background: #fffbeb;
    color: #92400e;
    border-color: #f59e0b;
}

/* Form */
.dc-identity-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dc-identity-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.dc-identity-form input[type="text"],
.dc-identity-form input[type="email"],
.dc-identity-form input[type="password"],
.dc-identity-form input[type="date"],
.dc-identity-form input[type="file"],
.dc-identity-form textarea,
.dc-identity-form select {
    padding: 12px 16px;
    border: 1px solid #d5d5dc;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s;
    font-family: inherit;
}

.dc-identity-form input:focus,
.dc-identity-form textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.dc-identity-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.dc-identity-hint {
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

.dc-identity-checkbox {
    flex-direction: row !important;
    align-items: center;
    gap: 10px !important;
    font-size: 14px;
}

.dc-identity-checkbox input {
    width: auto;
}

.dc-identity-checkbox a {
    color: #6366f1;
    text-decoration: none;
}

/* Buttons */
.dc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid #d5d5dc;
    background: #fff;
    color: #333;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.dc-btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-color: transparent;
}

.dc-btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.dc-btn-large {
    padding: 14px 28px;
    font-size: 16px;
    width: 100%;
}

/* Links */
.dc-identity-links {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #888;
}

.dc-identity-links a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
}

/* Join Cards */
.dc-join-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 30px 0;
}

@media (max-width: 900px) {
    .dc-join-grid {
        grid-template-columns: 1fr;
    }
}

.dc-join-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dc-join-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}

.dc-join-card__icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.dc-join-card h2 {
    font-size: 20px;
    margin: 0;
    color: #1a1a1a;
}

.dc-join-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.dc-join-card__features {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    text-align: start;
    font-size: 13px;
    color: #555;
}

.dc-join-card__features li {
    padding: 6px 0;
}

.dc-join-card .dc-btn {
    margin-top: auto;
}

.dc-join-footer {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-top: 20px;
}

.dc-join-footer a {
    color: #6366f1;
    font-weight: 600;
    text-decoration: none;
}

/* Type Selector */
.dc-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.dc-type-option {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 16px;
    border: 2px solid #eaeaea;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.dc-type-option:has(input:checked) {
    border-color: #6366f1;
    background: #f0f0ff;
}

.dc-type-option input {
    margin-top: 4px;
}

.dc-type-option span strong {
    display: block;
    font-size: 14px;
    color: #222;
}

.dc-type-option span small {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* Langs */
.dc-langs-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.dc-langs-checkboxes label {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 12px;
    border: 1px solid #eaeaea;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 400;
}

.dc-langs-checkboxes input:checked + * {
    color: #6366f1;
}
/* =========================================================
   Register Form — Simplified
   ========================================================= */

.dc-identity-field {
  display: block;
  margin-bottom: 20px;
}

.dc-identity-field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #222;
}

.dc-identity-required {
  color: #e74c3c;
  font-weight: 700;
}

.dc-identity-field input[type="text"],
.dc-identity-field input[type="email"],
.dc-identity-field input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  color: #222;
  background: #fff;
  border: 1px solid #d5d5dc;
  border-radius: 10px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dc-identity-field input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.dc-identity-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #888;
  line-height: 1.6;
}

/* لینک‌های پایین فرم */
.dc-identity-links {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: #666;
}

.dc-identity-links a {
  color: #6366f1;
  text-decoration: none;
  font-weight: 600;
  margin-right: 6px;
}

.dc-identity-links a:hover {
  text-decoration: underline;
}

/* =========================================================
   Responsive — Mobile
   ========================================================= */

@media (max-width: 600px) {
  .dc-identity-shell {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .dc-identity-header h1 {
    font-size: 22px;
  }

  .dc-identity-header p {
    font-size: 13px;
  }

  .dc-identity-field input {
    padding: 11px 14px;
    font-size: 15px;
  }

  .dc-btn-large {
    padding: 13px 24px;
    font-size: 15px;
  }
}