/* IJHSDR — giriş, qeydiyyat və "My Account" səhifələri */

.acc-wrap {
    max-width: 440px;
    color: #1f2937;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
}
.acc-wrap.acc-wide { max-width: 640px; }

.acc-form { display: flex; flex-direction: column; gap: 16px; }
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.acc-field { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 0; border: 0; padding: 0; }
.acc-field > label,
.acc-field > legend { font-weight: 600; font-size: 14px; color: #1f2937; padding: 0; margin-bottom: 0; }
.acc-field legend { margin-bottom: 6px; }
.req { color: #d71a46; }
.acc-opt { color: #6b7280; font-weight: 400; font-size: 12.5px; }
.acc-hint a { color: #16508a; text-decoration: underline; }

/* Akademik məlumatlar bloku */
.acc-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 4px 0 0;
    padding: 16px;
    border: 1px solid #dfe2e8;
    border-radius: 10px;
    background: #fafbfc;
    min-width: 0;
}
.acc-section > legend {
    padding: 0 6px;
    font-weight: 700;
    font-size: 14px;
    color: #0e345a;
    letter-spacing: .2px;
}
.acc-orcid { display: inline-flex; align-items: center; gap: 4px; color: #16508a; text-decoration: underline; }
.acc-orcid-badge { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #a6ce39; color: #fff; font-size: 9px; font-weight: 700; text-decoration: none; }

.acc-field input:not([type=radio]):not([type=checkbox]),
.acc-field select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #c9ccd3;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font: inherit;
    font-size: 16px; /* iOS-da fokusda böyütmənin qarşısını alır */
    transition: border-color .15s ease, box-shadow .15s ease;
}
.acc-field input:focus,
.acc-field select:focus {
    outline: none;
    border-color: #16508a;
    box-shadow: 0 0 0 3px rgba(22, 80, 138, .18);
}
.acc-field input:disabled { background: #f3f4f6; color: #6b7280; }

.acc-field.has-error input:not([type=radio]):not([type=checkbox]),
.acc-field.has-error select { border-color: #d71a46; }
.acc-error { color: #b91c1c; font-size: 13px; }
.acc-hint { color: #6b7280; font-size: 12.5px; }

.acc-pass { position: relative; }
.acc-pass input { padding-right: 64px !important; }
.acc-show {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #16508a;
    font: 600 13px "Segoe UI", Roboto, Arial, sans-serif;
    cursor: pointer;
}
.acc-show:hover { background: #eef1f6; }

/* Author / Reviewer seçimi */
.acc-role-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.acc-role {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1.5px solid #c9ccd3;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
.acc-role:hover { border-color: #16508a; }
.acc-role input { margin-top: 3px; accent-color: #16508a; width: 18px; height: 18px; flex: 0 0 auto; }
.acc-role span { display: flex; flex-direction: column; gap: 2px; }
.acc-role b { font-size: 15px; color: #111827; }
.acc-role small { font-size: 12.5px; color: #6b7280; line-height: 1.35; }
.acc-role:has(input:checked) { border-color: #16508a; background: #eef4fb; }
.acc-roles.has-error .acc-role { border-color: #d71a46; }

.acc-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; cursor: pointer; }
.acc-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: #16508a; flex: 0 0 auto; }

.acc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 22px;
    border: 2px solid #16508a;
    border-radius: 8px;
    background: #16508a;
    color: #ffffff !important;
    font: 600 15px "Segoe UI", Roboto, Arial, sans-serif;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color .15s ease, transform .1s ease;
}
.acc-btn:hover { background: #0e345a; border-color: #0e345a; }
.acc-btn:active { transform: translateY(1px); }
.acc-form > .acc-btn { align-self: flex-start; min-width: 180px; }
.acc-btn-outline { background: transparent; color: #16508a !important; }
.acc-btn-outline:hover { background: #16508a; color: #ffffff !important; }

.acc-note { margin: 18px 0 0; font-size: 14px; }
.acc-note a, .acc-check a { color: #16508a; text-decoration: underline; }
.acc-muted { color: #6b7280; }

.acc-alert { padding: 12px 14px; margin-bottom: 16px; border-radius: 8px; font-size: 14px; border: 1px solid; }
.acc-alert-ok { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.acc-alert-err { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

/* Bal çuxuru (botlar üçün) */
.acc-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; opacity: 0; }

/* Hesab səhifəsi */
.acc-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
}
.acc-avatar {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #333333;
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
}
.acc-name { font-weight: 700; font-size: 17px; color: #111827; }
.acc-meta { font-size: 13.5px; color: #374151; overflow-wrap: anywhere; }
.acc-badge { display: inline-block; padding: 1px 8px; border-radius: 10px; background: #eef4fb; color: #16508a; font-weight: 600; font-size: 12.5px; }
.acc-logout { margin-left: auto; min-height: 38px; padding: 6px 14px; font-size: 14px; }

.acc-tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid #d1d5db; }
.acc-tabs button {
    padding: 10px 14px;
    border: 0;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    background: none;
    color: #4b5563;
    font: 600 14px "Segoe UI", Roboto, Arial, sans-serif;
    cursor: pointer;
}
.acc-tabs button[aria-selected="true"] { color: #16508a; border-bottom-color: #16508a; }

/* ---------- Hesab alt menyusu ---------- */
.acc-subnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.acc-subnav a {
    padding: 8px 14px;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    background: #ffffff;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.acc-subnav a:hover { border-color: #16508a; color: #16508a; }
.acc-subnav a.on { background: #16508a; border-color: #16508a; color: #ffffff; }

.acc-alert-wait { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.acc-lead { margin: 0 0 18px; color: #374151; line-height: 1.6; }
.acc-lead a { color: #16508a; text-decoration: underline; }
.acc-btn-sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.acc-form .acc-btn-sm { align-self: flex-start; }
.acc-btn:disabled { opacity: .7; cursor: progress; }

/* Müəlliflər */
.acc-author { padding: 12px; margin-bottom: 10px; border: 1px solid #e5e7eb; border-radius: 8px; background: #ffffff; }
.acc-author .acc-grid { gap: 10px; margin-top: 8px; }
.acc-author label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 13px; }
.acc-author-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.acc-author-n { font-weight: 700; font-size: 13.5px; color: #0e345a; }
.acc-mini { padding: 4px 9px; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; color: #374151; font-size: 12.5px; cursor: pointer; }
.acc-mini:hover { border-color: #16508a; color: #16508a; }
.acc-mini-del:hover { border-color: #d71a46; color: #d71a46; }
.acc-section.has-error { border-color: #d71a46; }

/* Söz sayğacı və açar sözlər */
.acc-hint.acc-bad { color: #b91c1c; font-weight: 600; }
.acc-hint.acc-good { color: #047857; font-weight: 600; }
.acc-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c9ccd3;
    border-radius: 8px;
    font: inherit;
    font-size: 15px;
    line-height: 1.55;
    resize: vertical;
}
.acc-field textarea:focus { outline: none; border-color: #16508a; box-shadow: 0 0 0 3px rgba(22, 80, 138, .18); }
.acc-field.has-error textarea { border-color: #d71a46; }
.acc-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 0; }
.acc-chip { padding: 3px 10px; border-radius: 14px; background: #eef4fb; color: #16508a; font-size: 13px; font-weight: 600; }
.acc-chip-over { background: #fef2f2; color: #b91c1c; text-decoration: line-through; }

/* PDF seçimi */
.acc-drop {
    position: relative;
    display: block;
    padding: 22px 16px;
    border: 2px dashed #b8c2d1;
    border-radius: 10px;
    background: #fafbfc;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
.acc-drop:hover, .acc-drop-over { border-color: #16508a; background: #eef4fb; }
.acc-drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.acc-drop-text { color: #374151; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.acc-drop-text b { color: #16508a; }
.acc-drop-ok { border-style: solid; border-color: #059669; background: #ecfdf5; }
.acc-drop-bad { border-style: solid; border-color: #d71a46; background: #fef2f2; }
.acc-field.has-error .acc-drop { border-color: #d71a46; }

/* Siyahılar və statuslar */
.acc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.acc-list li { padding: 14px 16px; border: 1px solid #e5e7eb; border-radius: 10px; background: #ffffff; display: flex; flex-direction: column; gap: 6px; }
.acc-list-title { font-weight: 700; color: #0e345a; font-size: 15.5px; line-height: 1.4; text-decoration: none; }
.acc-list-title:hover { text-decoration: underline; }
.acc-list-meta { font-size: 13px; color: #6b7280; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.acc-status { display: inline-block; padding: 2px 9px; border-radius: 12px; font-size: 12.5px; font-weight: 600; }
.acc-status-pending { background: #fffbeb; color: #92400e; }
.acc-status-approved { background: #ecfdf5; color: #065f46; }
.acc-status-rejected { background: #fef2f2; color: #991b1b; }
.acc-empty { padding: 28px 16px; border: 1px dashed #d1d5db; border-radius: 10px; text-align: center; color: #4b5563; }
.acc-empty p { margin: 0 0 12px; }

/* Məqalə səhifəsi */
.acc-manuscript { padding: 18px; border: 1px solid #e5e7eb; border-radius: 12px; background: #ffffff; }
.acc-ms-title { margin: 8px 0 14px; font-size: 1.2rem; line-height: 1.4; color: #111827; font-weight: 700; }
.acc-ms-h { margin: 18px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: #6b7280; font-weight: 700; }
.acc-ms-abstract { line-height: 1.7; color: #1f2937; text-align: left; white-space: normal; }
.acc-authors { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; line-height: 1.45; }
.acc-file { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fafbfc; }
.acc-file > span:nth-child(2) { flex: 1; min-width: 160px; overflow-wrap: anywhere; font-size: 14px; }
.acc-file-icon { display: grid; place-items: center; width: 42px; height: 50px; border-radius: 6px; background: #d71a46; color: #fff; font-size: 12px; font-weight: 800; }

/* Rəy və düzəliş blokları */
.acc-block { margin-top: 18px; padding: 18px; border: 1px solid #e5e7eb; border-radius: 12px; background: #ffffff; }
.acc-block-title { margin: 0 0 12px; font-size: 16px; font-weight: 700; color: #0e345a; }
.acc-review { padding: 14px; margin-bottom: 10px; border: 1px solid #e5e7eb; border-left: 4px solid #16508a; border-radius: 8px; background: #fafbfc; }
.acc-review-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.acc-small { font-size: 12.5px; }
.acc-quote { padding: 12px 14px; border-left: 3px solid #d1d5db; background: #fafbfc; border-radius: 4px; }
.acc-file-input { padding: 10px; border: 1px dashed #b8c2d1; border-radius: 8px; background: #fafbfc; font-size: 14px; max-width: 100%; }
.acc-rec-options { grid-template-columns: repeat(4, 1fr); }
.acc-rec-options .acc-role { align-items: center; padding: 10px 12px; }
.acc-rec { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 13px; font-weight: 700; }
.acc-rec-accept .acc-rec, .acc-rec.acc-rec-accept { background: #ecfdf5; color: #065f46; }
.acc-rec.acc-rec-minor { background: #eef4fb; color: #16508a; }
.acc-rec.acc-rec-major { background: #fffbeb; color: #92400e; }
.acc-rec.acc-rec-reject { background: #fef2f2; color: #991b1b; }
.acc-status-revision { background: #fffbeb; color: #92400e; }
.acc-status-accepted { background: #ecfdf5; color: #065f46; }

@media (max-width: 640px) {
    .acc-grid, .acc-role-options { grid-template-columns: 1fr; }
    .acc-rec-options { grid-template-columns: 1fr 1fr; }
    .acc-form > .acc-btn { align-self: stretch; }
    .acc-summary { flex-wrap: wrap; }
    .acc-logout { margin-left: 0; width: 100%; }
}
