/* ================================================================
   auth.css – styly pro auth widget (přihlášení / registrace)
   ================================================================ */

/* ── Widget bar (fixovaný v pravém horním rohu) ─────────────────── */
#auth-widget {
    position: fixed;
    top: 8px;
    right: 14px;
    z-index: 1000;
    font-size: 13px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.93);
    padding: 4px 12px;
    border-radius: 5px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.18);
    white-space: nowrap;
    line-height: 1.8;
}


.auth-sep {
    color: #bbb;
    margin: 0 4px;
}

/* ── Tlačítka ────────────────────────────────────────────────────── */
.auth-btn {
    background: #6c7a89;
    color: #fff;
    border: none;
    padding: 3px 11px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    font-family: inherit;
    line-height: 1.6;
}
.auth-btn:hover:not(:disabled) {
    background: #515a62;
    border:none;
}
.auth-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.auth-btn-primary {
    background: rgb(15,51,15);
}
.auth-btn-primary:hover:not(:disabled) {
    background: rgba(15,51,15,0.85);
    border:none;
}
.auth-btn-submit {
    display: block;
    width: 100%;
    padding: 9px;
    font-size: 15px;
    margin-top: 8px;
}

/* ── Overlay (tmavé pozadí) ─────────────────────────────────────── */
.auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

/* ── Modální okno ────────────────────────────────────────────────── */
.auth-modal-box {
    position: relative;
    background: #fff;
    border-radius: 7px;
    padding: 32px 36px 28px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.22);
    box-sizing: border-box;
    z-index: 9999;
}

.auth-modal-box h3 {
    margin: 0 0 22px 0;
    font-size: 20px;
    color: rgb(15,51,15);
    border-top: none;
    border-bottom: 1px solid #b8c8b8;
    padding-bottom: 12px;
}

.auth-modal-zavrit {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
    padding: 0 4px;
    font-family: inherit;
}
.auth-modal-zavrit:hover {
    color: #444;
}

/* ── Pole formuláře ─────────────────────────────────────────────── */
.auth-field {
    margin-bottom: 14px;
}
.auth-field label {
    display: block;
    font-size: 13px;
    color: #444;
    margin-bottom: 4px;
    font-weight: bold;
}
.auth-field input[type="text"],
.auth-field input[type="password"],
.auth-field input[type="email"] {
    display: block;
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.auth-field input:focus {
    border-color: #1a5276;
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 82, 118, 0.14);
}

.auth-tip {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 3px;
}

/* ── Zprávy ─────────────────────────────────────────────────────── */
.auth-msg {
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.4;
}
.auth-msg-chyba {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}
.auth-msg-uspech {
    background: #eafaf1;
    color: #1e8449;
    border: 1px solid #a9dfbf;
}

/* ── Doplňky ─────────────────────────────────────────────────────── */
.auth-req {
    color: #c0392b;
}
.auth-req-info {
    font-size: 11px;
    color: #aaa;
    margin-top: 10px;
    text-align: right;
}

/* ── Responzivita ────────────────────────────────────────────────── */
/* ── Odkaz "Zapomněli jste heslo?" + popis reset formuláře ─────────────────── */
.auth-zapomenute-heslo {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 12px;
}
.auth-zapomenute-heslo a {
    color: #999;
    text-decoration: none;
}
.auth-zapomenute-heslo a:hover {
    color: #555;
    text-decoration: underline;
}
.auth-reset-popis {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.5;
}

@media screen and (max-width: 599px) {
    #auth-widget {
        font-size: 11px;
        padding: 3px 8px;
        top: 5px;
        right: 8px;
    }
    .auth-modal-box {
        padding: 22px 16px 18px;
    }
    .auth-modal-box h3 {
        font-size: 17px;
    }
}
