@font-face {
    font-family: "Montserrat";
    src: local("Montserrat"), local("Montserrat Regular");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: dark;
    font-family: "Montserrat", "Poppins", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
    min-height: 100%;
    margin: 0;
    background: #0b0b0c;
    color: #fff;
}
a { color: inherit; }
button, input, textarea { font: inherit; }

/* Kurulum ekranı */
.setup-page {
    min-height: 100vh;
    padding: 28px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 8% 8%, rgba(48, 64, 80, .28), transparent 32%),
        radial-gradient(circle at 92% 88%, rgba(112, 128, 144, .16), transparent 25%),
        linear-gradient(140deg, #111816, #050807 65%, #132019);
}
.setup-stage {
    width: min(1240px, 100%);
    display: grid;
    gap: 14px;
}
.setup-shell {
    width: 100%;
    min-height: 760px;
    display: grid;
    grid-template-columns: minmax(300px, .75fr) minmax(480px, 1.25fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 30px;
    background: rgba(255, 255, 255, .06);
    box-shadow: 0 35px 110px rgba(0, 0, 0, .52);
    backdrop-filter: blur(22px);
}
.setup-intro {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    background:
        linear-gradient(145deg, rgba(48, 64, 80, .92), rgba(44, 56, 61, .94)),
        radial-gradient(circle at top left, rgba(255,255,255,.14), transparent 38%);
}
.setup-brand {
    display: inline-flex;
    align-items: center;
    width: min(235px, 100%);
    min-height: 64px;
}
.setup-brand img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 58px;
    object-fit: contain;
    object-position: left center;
}

.setup-badge {
    display: inline-flex;
    padding: 8px 13px;
    margin-bottom: 18px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: rgba(255,255,255,.09);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
}
.setup-intro h1 {
    max-width: 520px;
    margin: 0 0 18px;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.04;
    letter-spacing: -.045em;
}
.setup-intro p {
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: 15px;
    line-height: 1.8;
}
.setup-note {
    padding: 17px 18px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    background: rgba(0,0,0,.16);
    color: rgba(255,255,255,.72);
    font-size: 12px;
    line-height: 1.65;
}
.setup-form-area {
    max-height: 92vh;
    overflow-y: auto;
    padding: 42px;
    background: rgba(7, 8, 11, .82);
}
.setup-heading h2 {
    margin: 0 0 7px;
    font-size: 28px;
}
.setup-heading p {
    margin: 0 0 28px;
    color: #9297a3;
    font-size: 13px;
}
.setup-errors {
    display: grid;
    gap: 6px;
    margin-bottom: 20px;
    padding: 15px 17px;
    border: 1px solid rgba(255, 90, 90, .35);
    border-radius: 14px;
    background: rgba(175, 18, 18, .17);
    color: #ffd8d8;
    font-size: 13px;
}
.setup-form { display: grid; gap: 20px; }
.form-section {
    display: grid;
    gap: 14px;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 19px;
    background: rgba(255,255,255,.035);
}
.form-section h3 {
    margin: 0 0 2px;
    color: #fff;
    font-size: 14px;
    letter-spacing: .025em;
}
.form-grid { display: grid; gap: 14px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.setup-form label {
    display: grid;
    gap: 8px;
    color: #c7cbd3;
    font-size: 12px;
    font-weight: 650;
}
.setup-form input,
.setup-form textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    outline: none;
    background: rgba(0,0,0,.23);
    color: #fff;
    padding: 13px 14px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.setup-form input:focus,
.setup-form textarea:focus {
    border-color: rgba(112, 128, 144, .85);
    box-shadow: 0 0 0 3px rgba(48, 64, 80, .18);
    background: rgba(0,0,0,.34);
}
.setup-form input[type="color"] {
    min-height: 48px;
    padding: 6px;
    cursor: pointer;
}
.setup-form input[type="file"] { padding: 10px; }
.setup-form small {
    color: #777d89;
    font-size: 10px;
    line-height: 1.45;
}

.svg-secondary-color-field {
    display: grid;
    gap: 8px;
}
.svg-secondary-color-field .toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.toggle-control {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #aeb4bf;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}
.toggle-control input[type="checkbox"] {
    width: 16px;
    min-width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    accent-color: #708090;
}
.svg-secondary-color-field input[type="color"]:disabled {
    opacity: .32;
    cursor: not-allowed;
    filter: grayscale(1);
}
.svg-secondary-color-field.is-disabled small { opacity: .72; }

.setup-submit {
    min-height: 54px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, #304050, #708090);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(48, 64, 80, .28);
    transition: transform .2s, box-shadow .2s;
}
.setup-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(48, 64, 80, .36); }

.setup-footer {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px 15px;
    padding: 8px 16px 0;
    color: rgba(255,255,255,.66);
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}
.setup-footer .artukluweb-brand {
    flex: 0 0 auto;
}


/* Kurulum ekranı: mobil uyumluluk ve footer marka hizası. */
.setup-footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:7px; }
.setup-footer .footer-copyright { display:inline-block; }
.setup-footer .footer-brand { display:inline-flex; flex:0 0 auto; align-items:center; justify-content:center; line-height:1; vertical-align:middle; }
.setup-footer .footer-brand img { display:block; width:auto; height:16px; max-width:120px; object-fit:contain; }
@media(max-width:920px){
  .setup-shell{grid-template-columns:1fr}
  .setup-intro{min-height:300px;padding:34px}
  .setup-brand{width:min(215px,100%)}
  .setup-form-area{max-height:none;padding:30px}
}
@media(max-width:680px){
  .setup-page{padding:0;place-items:initial}
  .setup-shell{border-radius:0;border:0}
  .setup-intro{min-height:320px;padding:28px 22px}
  .setup-brand{width:min(195px,100%);min-height:54px}
  .setup-form-area{padding:26px 18px 40px}
  .form-grid.two,.form-grid.three{grid-template-columns:1fr}
  .form-section{padding:18px}
  .setup-footer{padding:12px 16px 18px;font-size:10px}
  .setup-footer .footer-brand img{height:14px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}
