/* ============================================================
   Középre igazított "kártyás" oldalak: profil, jelszócsere,
   kétfaktoros hitelesítés. Közös arculat (navy/kék gradiens).
   ============================================================ */

body.pc-body {
    background: linear-gradient(160deg, #eef2f8 0%, #f7f8fb 55%, #eaeef6 100%);
    min-height: 100vh;
}

.pc-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 16px;
}

.pc-wrap.pc-wrap-top { align-items: flex-start; }

.pc-card {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 34px rgba(38, 59, 106, .13);
    overflow: hidden;
}

.pc-card-wide { max-width: 620px; }

.pc-card-head {
    background: linear-gradient(135deg, #263B6A 0%, #406093 100%);
    color: #fff;
    padding: 26px 30px;
    text-align: center;
}

.pc-card-head-green { background: linear-gradient(135deg, #35803f 0%, #55a562 100%); }

.pc-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.pc-card-head h1 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: .02em;
}

.pc-card-head p {
    margin: 6px 0 0;
    font-size: .88rem;
    color: #cfd9ec;
}

.pc-card-body { padding: 28px 30px 30px; }

/* --------------------------
   Szekciók, adatsorok
--------------------------- */
.pc-section-title {
    font-size: .74rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #7a869a;
    font-weight: 600;
    margin: 26px 0 10px;
}

.pc-section-title:first-child { margin-top: 0; }

.pc-rows { margin: 0; }

.pc-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid #eef1f6;
}

.pc-row:last-child { border-bottom: none; }

.pc-row dt,
.pc-row .pc-row-label {
    color: #7a869a;
    font-size: .86rem;
    font-weight: 500;
    margin: 0;
    flex: 0 0 auto;
}

.pc-row dd,
.pc-row .pc-row-value {
    color: #263B6A;
    font-size: .95rem;
    margin: 0;
    text-align: right;
    word-break: break-word;
}

.pc-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: .04em;
}

.pc-badge {
    display: inline-block;
    background: #eaf0f9;
    color: #406093;
    border-radius: 12px;
    padding: 3px 11px;
    font-size: .8rem;
    margin: 2px 0 2px 4px;
}

.pc-pill {
    display: inline-block;
    border-radius: 12px;
    padding: 3px 11px;
    font-size: .8rem;
    font-weight: 600;
}

.pc-pill-on  { background: #e6f4e8; color: #35803f; }
.pc-pill-off { background: #f1f3f7; color: #7a869a; }

.pc-muted { color: #7a869a; font-size: .88rem; }

/* --------------------------
   Űrlapmezők
--------------------------- */
.pc-field { margin-bottom: 18px; }

.pc-field label {
    display: block;
    color: #263B6A;
    font-weight: 500;
    font-size: .9rem;
    margin-bottom: 6px;
}

/* A Django alapértelmezett widgetjei osztály nélkül érkeznek, ezért típus
   szerint stílusozunk. */
.pc-field input[type="password"],
.pc-field input[type="text"] {
    width: 100%;
    padding: 10px 40px 10px 14px;
    border: 1px solid #dfe4ec;
    border-radius: 8px;
    font-size: .95rem;
    color: #263B6A;
    background: #fbfcfe;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.pc-field input[type="password"]:focus,
.pc-field input[type="text"]:focus {
    outline: none;
    background: #fff;
    border-color: #406093;
    box-shadow: 0 0 0 3px rgba(64, 96, 147, .15);
}

/* Szabadon írható mező legördülő javaslatokkal (pl. hozzáférés indoka) */
.pc-field input[type="text"][list] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #dfe4ec;
    border-radius: 8px;
    font-size: .95rem;
    color: #263B6A;
    background: #fbfcfe;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

/* Többsoros mező */
.pc-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #dfe4ec;
    border-radius: 8px;
    font-family: inherit;
    font-size: .95rem;
    color: #263B6A;
    background: #fbfcfe;
    resize: vertical;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.pc-field textarea:focus {
    outline: none;
    background: #fff;
    border-color: #406093;
    box-shadow: 0 0 0 3px rgba(64, 96, 147, .15);
}

/* Legördülő választó (tanév, iskola) */
.pc-field select.pc-select {
    width: 100%;
    padding: 10px 38px 10px 14px;
    border: 1px solid #dfe4ec;
    border-radius: 8px;
    font-size: .95rem;
    color: #263B6A;
    background-color: #fbfcfe;
    /* Saját nyíl: a natív jelölő böngészőnként eltérő méretű és színű. */
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23406093'%3E%3Cpath d='M4.5 6.5 8 10l3.5-3.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}

.pc-field select.pc-select:focus {
    outline: none;
    background-color: #fff;
    border-color: #406093;
    box-shadow: 0 0 0 3px rgba(64, 96, 147, .15);
}

/* Egyjegyűnként olvasható kódmező */
.pc-code-input {
    text-align: center;
    font-size: 1.5rem !important;
    letter-spacing: .5em;
    padding-right: 14px !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.pc-input-wrap { position: relative; }

.pc-eye {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #7a869a;
    padding: 4px 6px;
    line-height: 1;
    border-radius: 6px;
    cursor: pointer;
}

.pc-eye:hover { color: #263B6A; background: #eef2f8; }

.pc-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f7f9fc;
    border: 1px solid #e6ebf3;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

.pc-check input { margin-top: 3px; }

.pc-check label {
    margin: 0;
    font-size: .9rem;
    color: #263B6A;
    cursor: pointer;
}

.pc-check .pc-check-hint {
    display: block;
    color: #7a869a;
    font-size: .8rem;
    margin-top: 2px;
}

.pc-help {
    margin: 8px 0 0;
    padding-left: 18px;
    color: #7a869a;
    font-size: .8rem;
}

.pc-help li { margin-bottom: 2px; }

.pc-error {
    color: #b23b3b;
    font-size: .84rem;
    margin-top: 6px;
}

.pc-alert {
    background: #fbe9e9;
    border: 1px solid #f2cccc;
    color: #b23b3b;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: .88rem;
    margin-bottom: 18px;
}

.pc-alert-ok {
    background: #e9f5ec;
    border-color: #c8e6ce;
    color: #35803f;
}

.pc-alert-warn {
    background: #fdf4e6;
    border-color: #f3e0bf;
    color: #8a6218;
}

/* --------------------------
   Gombok
--------------------------- */
.pc-submit {
    width: 100%;
    background: #263B6A;
    border: 1px solid #263B6A;
    color: #fff;
    border-radius: 8px;
    padding: 11px 16px;
    font-weight: 600;
    font-size: .95rem;
    transition: background .15s;
    cursor: pointer;
}

.pc-submit:hover { background: #1c2d53; border-color: #1c2d53; }

.pc-submit-danger {
    background: #b23b3b;
    border-color: #b23b3b;
}

.pc-submit-danger:hover { background: #94302f; border-color: #94302f; }

.pc-btn-ghost {
    display: inline-block;
    background: #fff;
    border: 1px solid #dfe4ec;
    color: #406093;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: .9rem;
    text-decoration: none;
    cursor: pointer;
}

.pc-btn-ghost:hover { background: #f2f5fa; color: #263B6A; }

.pc-home {
    display: inline-block;
    background: #263B6A;
    border: 1px solid #263B6A;
    color: #fff;
    border-radius: 8px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    transition: background .15s;
}

.pc-home:hover { background: #1c2d53; color: #fff; }

.pc-back {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: #7a869a;
    text-decoration: none;
    font-size: .9rem;
}

.pc-back:hover { color: #406093; }

.pc-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* --------------------------
   Eszközlista (megjegyzett eszközök)
--------------------------- */
.pc-device {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eef1f6;
}

.pc-device:last-child { border-bottom: none; }

.pc-device-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 8px;
    background: #eaf0f9;
    color: #406093;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.pc-device-info { flex: 1 1 auto; min-width: 0; }

.pc-device-info strong {
    display: block;
    color: #263B6A;
    font-size: .93rem;
    font-weight: 600;
}

.pc-device-info small {
    color: #7a869a;
    font-size: .79rem;
}

.pc-qr {
    background: #fff;
    border: 1px solid #dfe4ec;
    border-radius: 10px;
    padding: 10px;
    display: inline-block;
}

.pc-qr img { display: block; max-width: 220px; width: 100%; }

.pc-secret {
    background: #f7f9fc;
    border: 1px solid #e6ebf3;
    border-radius: 8px;
    padding: 10px 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .85rem;
    word-break: break-all;
    color: #263B6A;
}

@media (max-width: 575.98px) {
    .pc-card-body { padding: 22px 20px 24px; }
    .pc-row { flex-direction: column; align-items: flex-start; gap: 2px; }
    .pc-row dd, .pc-row .pc-row-value { text-align: left; }
}
