/* Accounts: the header buttons / menu and every account page (sign up, log in, e-mail code,
   password, profile). Pages come from django-allauth, laid out by allauth/layouts/base.html. */

/* --- header: "Log in" / "Sign up" or the person's name with a menu --- */
.acc-links { display: inline-flex; gap: 8px; align-items: center; }
.acc-link { padding: 6px 14px; border: 1px solid var(--c-line); border-radius: 20px; color: var(--c-text) !important;
    text-decoration: none; font: 600 13px 'Inter', sans-serif; letter-spacing: .02em; }
.acc-link:hover { border-color: var(--c-line-hover); color: #fff !important; }
.acc-link-main { background: var(--c-line); color: #fff !important; }
.acc-menu { position: relative; display: inline-block; font: 600 13px 'Inter', sans-serif; }
.acc-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
    padding: 4px 12px 4px 4px; border: 1px solid var(--c-line); border-radius: 20px; color: var(--c-text); }
.acc-menu summary::-webkit-details-marker { display: none; }
.acc-menu summary::after { content: "▾"; font-size: 11px; opacity: .8; }
.acc-avatar { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
    border-radius: 50%; background: var(--c-line); color: #fff; font-size: 13px; }
.acc-menu-list { position: absolute; z-index: 40; left: 0; top: calc(100% + 6px); min-width: 200px; padding: 6px;
    background: #0d0b09; border: 1px solid var(--c-line); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.6);
    display: flex; flex-direction: column; }
.acc-menu-list a, .acc-menu-list button { display: block; width: 100%; box-sizing: border-box; text-align: left;
    padding: 9px 12px; border: 0; border-radius: 5px; background: none; color: var(--c-text) !important;
    font: 500 14px 'Inter', sans-serif; text-decoration: none; cursor: pointer; }
.acc-menu-list a:hover, .acc-menu-list button:hover { background: var(--c-glow); color: #fff !important; }
.acc-menu-list form { margin: 0; border-top: 1px solid var(--c-line-soft); margin-top: 4px; padding-top: 4px; }

/* --- the account pages --- */
.acc-page { display: flex; justify-content: center; padding: 26px 14px 40px; }
.acc-card { width: 100%; max-width: 460px; box-sizing: border-box; padding: 28px 28px 24px; background: #0b0908;
    border: 1px solid var(--c-line); border-radius: 12px; color: #e4ddd0; font: 15px/1.6 'Inter', sans-serif;
    box-shadow: 0 12px 40px rgba(0,0,0,.45); }
.acc-title { margin: 0 0 10px; color: #f3efe6; font: 600 28px/1.2 'Playfair Display', Georgia, serif; text-align: center; }
.acc-card p { margin: 0 0 12px; }
.acc-card a { color: var(--c-text); }
.acc-card label { display: block; margin: 0 0 5px; color: #cfc6b6; font: 600 13px 'Inter', sans-serif; }
.acc-card input[type=text], .acc-card input[type=email], .acc-card input[type=password], .acc-card input:not([type]) {
    width: 100%; box-sizing: border-box; padding: 11px 13px; border: 1px solid #4a3f33; border-radius: 8px;
    background: #16120f; color: #f3efe6; font: 16px 'Inter', sans-serif; }
.acc-card input:focus { outline: none; border-color: var(--c-line-hover); box-shadow: 0 0 0 3px rgba(184,132,74,.25); }
.acc-card .helptext, .acc-card .help, .acc-card small { display: block; margin-top: 4px; color: #8f877a; font-size: 12px; }
.acc-card ul.errorlist, .acc-error { margin: 4px 0 8px; padding: 0; list-style: none; color: #ff9b8a; font-size: 13px; }
.acc-form > p { margin-bottom: 16px; }
.acc-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.acc-btn { display: inline-block; padding: 11px 18px; border: 1px solid var(--c-line); border-radius: 8px; background: none;
    color: var(--c-text) !important; font: 600 14px 'Inter', sans-serif; text-decoration: none; cursor: pointer; }
.acc-btn:hover { border-color: var(--c-line-hover); color: #fff !important; }
.acc-primary { flex: 1 1 auto; background: var(--c-line); border-color: var(--c-line); color: #fff !important; text-align: center; }
.acc-primary:hover { background: var(--c-line-hover); }
.acc-danger { color: #ff9b8a !important; border-color: #7a3a30; }
.acc-danger:hover { background: #3a1812; }
.acc-msg { padding: 10px 12px; border-radius: 8px; background: #1f1a14; border: 1px solid var(--c-line-soft); }
.acc-msg.error { border-color: #7a3a30; color: #ff9b8a; }
.acc-panel { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--c-line-soft); }
.acc-panel h2 { margin: 0 0 8px; color: #f3efe6; font: 600 17px 'Inter', sans-serif; }
.acc-panel-danger h2 { color: #ff9b8a; }
/* password + the "eye" */
.acc-pw { position: relative; display: block; }
.acc-pw input { padding-right: 44px !important; }
.acc-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px;
    border: 0; background: none; cursor: pointer; opacity: .55; font-size: 16px; }
.acc-eye.on, .acc-eye:hover { opacity: 1; }
/* sign-up: "visitor" / "artist" as two cards */
.acc-card #id_role { display: grid; gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; }
.acc-card #id_role > div, .acc-card #id_role > li { margin: 0; }
.acc-card #id_role label { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; margin: 0;
    border: 1px solid #4a3f33; border-radius: 10px; cursor: pointer; color: #e4ddd0; font: 500 14px/1.45 'Inter', sans-serif; }
.acc-card #id_role label:has(input:checked) { border-color: var(--c-line-hover); background: rgba(184,132,74,.12); }
.acc-card #id_role input { margin-top: 3px; accent-color: #b8844a; }
.acc-card input[type=checkbox] { accent-color: #b8844a; width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }
.acc-card input[name=website], .acc-card label[for=id_website] { display: none !important; }   /* the bot trap */
.acc-card code, .acc-code { font: 700 22px ui-monospace, Menlo, monospace; letter-spacing: .2em; }

/* fixes after the first look */
.acc-card { text-align: left; }
.acc-title { text-align: center; }
.acc-msg, .acc-msg.success, .acc-msg.info, .acc-msg.warning { color: #e4ddd0 !important; font-weight: 500; text-align: left; }
.acc-msg.error { color: #ff9b8a !important; }
.acc-msg a { color: var(--c-text) !important; }
.acc-card p:has(> input[type=checkbox]) { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.acc-card p:has(> input[type=checkbox]) > label { order: 2; margin: 0; font-weight: 500; color: #e4ddd0; }
.acc-card p:has(> input[type=checkbox]) > input { order: 1; margin: 0; }
.acc-card p:has(> input[type=checkbox]) > .helptext { order: 3; flex-basis: 100%; margin: 0 0 0 26px; }
.acc-card .helptext { color: #8f877a; font-size: 12px; line-height: 1.5; }
.acc-card .helptext ul { margin: 4px 0 0; padding-left: 18px; }
