:root {
    --bg: #0b0f14;
    --bg-soft: #121923;
    --panel: rgba(11, 15, 20, 0.72);
    --panel-strong: rgba(16, 24, 34, 0.9);
    --text: #edf1f7;
    --muted: #99a6b8;
    --line: rgba(255, 255, 255, 0.08);
    --accent: #f0c86a;
    --accent-2: #79d7ff;
    --danger: #ff6a73;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        linear-gradient(180deg, rgba(11, 15, 20, 0.55), rgba(11, 15, 20, 0.88)),
        radial-gradient(circle at top left, rgba(121, 215, 255, 0.14), transparent 32%),
        radial-gradient(circle at bottom right, rgba(240, 200, 106, 0.12), transparent 30%),
        var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

.entry-page {
    overflow-x: hidden;
}

.site-header {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem clamp(1rem, 2vw, 2rem);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
}

.brand-mark {
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.04);
    flex: 0 0 auto;
}

.brand-text {
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.account-shell {
    position: relative;
}

.account-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 2.45rem;
    padding: 0.22rem 0.85rem 0.22rem 0.22rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, rgba(240, 200, 106, 0.95), rgba(255, 217, 143, 0.95));
    color: #0b0f14;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.account-badge__avatar {
    width: 1.75rem;
    height: 1.75rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(11, 15, 20, 0.16);
    color: #0b0f14;
    flex: 0 0 auto;
}

.account-badge__meta {
    display: grid;
    gap: 0.1rem;
    text-align: left;
}

.account-badge__label {
    font-size: 0.7rem;
    font-weight: 700;
    opacity: 0.72;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.account-badge__name {
    font-size: 0.92rem;
    font-weight: 700;
}

.account-menu {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    z-index: 20;
    min-width: 17rem;
    padding: 0.85rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(11, 15, 20, 0.96);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

.account-menu__info {
    display: grid;
    gap: 0.2rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.account-menu__title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent-2);
}

.account-menu__email {
    color: var(--muted);
    font-size: 0.92rem;
    word-break: break-word;
}

.account-menu__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.6rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-weight: 600;
}

.action-link,
.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.45rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-weight: 600;
    letter-spacing: 0;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.action-link:hover,
.cta:hover {
    transform: translateY(-1px);
}

.action-link {
    background: rgba(255, 255, 255, 0.03);
}

.action-link--primary,
.cta--solid {
    background: linear-gradient(135deg, var(--accent), #ffd98f);
    color: #0c1017;
    border-color: transparent;
}

.entry-shell {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    min-height: calc(100vh - 5.5rem);
    padding: clamp(1rem, 2vw, 2rem);
}

.hero-panel,
.auth-shell,
.studio-shell {
    border: 1px solid var(--line);
    background: var(--panel);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.hero-panel {
    position: relative;
    min-height: clamp(38rem, calc(100vh - 9rem), 76rem);
    padding: 1rem;
    border-radius: 1.5rem;
    overflow: hidden;
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 38%),
        linear-gradient(180deg, rgba(11, 15, 20, 0.05), rgba(11, 15, 20, 0.42));
    pointer-events: none;
}

.collage {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: minmax(4rem, 1fr);
    grid-auto-flow: dense;
    gap: 0.32rem;
    width: 100%;
    height: 100%;
    min-height: 31rem;
}

.collage-tile {
    position: relative;
    border-radius: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(255, 255, 255, 0.05);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.collage-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 15, 20, 0.02), rgba(11, 15, 20, 0.32));
}

.collage-tile:nth-child(n) {
    grid-column: span 2;
    grid-row: span 2;
}

.collage-placeholder {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 1rem;
    color: rgba(237, 241, 247, 0.7);
    font-size: 0.92rem;
}

.panel-note {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
    border-radius: 999px;
    background: rgba(9, 13, 18, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 0.92rem;
    backdrop-filter: blur(12px);
}

.site-footer {
    position: relative;
    z-index: 2;
    padding: 1rem clamp(1rem, 2vw, 2rem) 1.5rem;
}

.site-footer__inner {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__copy {
    margin: 0;
    color: rgba(237, 241, 247, 0.72);
    font-size: 0.92rem;
    line-height: 1.6;
    text-align: center;
}

.site-footer__copy a {
    color: var(--accent-2);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.is-modal-open {
    overflow: hidden;
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.auth-modal[hidden] {
    display: none !important;
}

.auth-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 12, 0.72);
    backdrop-filter: blur(10px);
}

.auth-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 31rem);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    padding: 0.85rem;
    border-radius: 1.15rem;
    background: rgba(11, 15, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.auth-modal__close {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

.auth-switcher {
    display: inline-flex;
    gap: 0.5rem;
    padding: 0.3rem;
    margin-bottom: 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-switcher__tab {
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: 0.62rem 0.9rem;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.auth-switcher__tab.is-active {
    color: #091015;
    background: linear-gradient(135deg, var(--accent), #ffd98f);
}

.auth-panel {
    display: grid;
    gap: 0.7rem;
}

.auth-panel[hidden] {
    display: none !important;
}

.auth-panel h2 {
    margin-bottom: 0;
    font-size: clamp(1.45rem, 2.2vw, 1.95rem);
}

.auth-form {
    display: grid;
    gap: 0.85rem;
}

.auth-feedback {
    margin-top: 0.8rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
}

.panel-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 0 6px rgba(121, 215, 255, 0.14);
    flex: 0 0 auto;
}

.auth-page {
    display: grid;
    place-items: center;
    padding: 1.2rem;
}

.auth-shell,
.studio-shell {
    width: min(100%, 40rem);
    padding: clamp(1.1rem, 3vw, 2rem);
    border-radius: 1.35rem;
}

.studio-shell--wide {
    width: min(100%, 76rem);
}

.auth-shell h1,
.studio-shell h1 {
    margin-bottom: 0.75rem;
    font-size: clamp(2rem, 4vw, 3rem);
}

.field {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.15rem;
}

.field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
}

.field input,
.field textarea,
.field select {
    width: 100%;
    border-radius: 0.95rem;
    border: 1px solid var(--line);
    background: rgba(8, 12, 17, 0.96);
    color: var(--text);
    padding: 0.78rem 0.95rem;
    font: inherit;
    outline: none;
}

.field select {
    color-scheme: dark;
    appearance: none;
    -webkit-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position:
        calc(100% - 1.15rem) calc(50% - 0.15rem),
        calc(100% - 0.85rem) calc(50% - 0.15rem);
    background-size: 0.4rem 0.4rem, 0.4rem 0.4rem;
    background-repeat: no-repeat;
    padding-right: 2.2rem;
}

.field select option {
    background: #0b0f14;
    color: var(--text);
}

.field[data-reference-field] input[type="file"] {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.field__static-value {
    display: inline-flex;
    align-items: center;
    min-height: 2.95rem;
    width: 100%;
    padding: 0.78rem 0.95rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-weight: 600;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: rgba(121, 215, 255, 0.42);
    box-shadow: 0 0 0 4px rgba(121, 215, 255, 0.08);
}

.helper {
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 0.9rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.reference-preview {
    display: grid;
    gap: 0.7rem;
    min-width: 0;
}

.reference-preview__empty {
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted);
    line-height: 1.5;
}

.reference-preview__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.reference-preview__item {
    position: relative;
    aspect-ratio: 1 / 1;
    margin: 0;
    border-radius: 0.95rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.04);
}

.reference-preview__remove {
    position: absolute;
    top: 0.32rem;
    right: 0.32rem;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 1.15rem;
    height: 1.15rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(8, 12, 17, 0.78);
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.reference-preview__remove:hover,
.reference-preview__remove:focus-visible {
    background: rgba(255, 106, 115, 0.96);
    color: #0c1017;
    transform: scale(1.05);
}

.reference-preview__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reference-preview__item figcaption {
    position: absolute;
    left: 0.45rem;
    right: 0.45rem;
    bottom: 0.45rem;
    padding: 0.3rem 0.45rem;
    border-radius: 999px;
    background: rgba(8, 12, 17, 0.76);
    color: var(--text);
    font-size: 0.72rem;
    line-height: 1.2;
    text-align: center;
    backdrop-filter: blur(8px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reference-dropzone {
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 1rem;
    border: 1px dashed rgba(121, 215, 255, 0.35);
    background:
        radial-gradient(circle at top right, rgba(121, 215, 255, 0.08), transparent 30%),
        rgba(255, 255, 255, 0.03);
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
    min-width: 0;
    width: 100%;
}

.reference-dropzone:hover,
.reference-dropzone:focus-visible,
.reference-dropzone.is-dragover {
    border-color: rgba(121, 215, 255, 0.78);
    background:
        radial-gradient(circle at top right, rgba(121, 215, 255, 0.14), transparent 35%),
        rgba(121, 215, 255, 0.05);
    transform: translateY(-1px);
}

.reference-dropzone__title {
    font-weight: 700;
}

.reference-dropzone__subtitle {
    color: var(--accent-2);
    font-weight: 600;
}

.reference-dropzone__meta {
    color: var(--muted);
    font-size: 0.9rem;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.55rem;
    padding: 0.68rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.button--primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), #ffdd9d);
    color: #0b0f14;
}

.button--google {
    width: 100%;
    margin-top: 0.1rem;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
}

.notice {
    margin-top: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
}

.studio-shell {
    margin: 3rem auto;
}

.studio-page {
    min-height: 100vh;
    display: block;
    overflow-x: hidden;
}

.studio-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 1rem;
    margin-top: 1.2rem;
    align-items: start;
}

.studio-panel {
    display: grid;
    gap: 1rem;
    padding: clamp(1rem, 2vw, 1.35rem);
    border-radius: 1.2rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    min-width: 0;
}

.studio-panel--output {
    background:
        radial-gradient(circle at top right, rgba(121, 215, 255, 0.08), transparent 30%),
        rgba(255, 255, 255, 0.03);
}

.studio-header {
    display: grid;
    gap: 0.75rem;
}

.studio-header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.studio-header__meta {
    color: var(--muted);
    max-width: 52rem;
    line-height: 1.65;
}

.studio-form {
    display: grid;
    gap: 0.95rem;
    min-width: 0;
}

.studio-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    min-width: 0;
}

.studio-form__grid > .field,
.field {
    min-width: 0;
}

.studio-form textarea {
    min-height: 11rem;
    resize: vertical;
}

.studio-form .button {
    width: 100%;
}

.studio-surface {
    display: grid;
    gap: 0.85rem;
}

.preview-frame {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 40%),
        rgba(8, 12, 17, 0.8);
}

.preview-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preview-frame.has-preview .preview-frame__placeholder {
    display: none;
}

.preview-frame__placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    text-align: center;
    color: var(--muted);
    line-height: 1.6;
}

.studio-summary {
    display: grid;
    gap: 0.45rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.studio-summary__label {
    color: var(--accent-2);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.studio-summary__text {
    color: var(--text);
    line-height: 1.6;
    word-break: break-word;
}

.studio-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.studio-actions .button {
    width: auto;
    flex: 1 1 10rem;
}

.studio-history {
    display: grid;
    gap: 0.75rem;
}

.studio-history__title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-2);
}

.studio-history__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.studio-history__item {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 0.95rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.studio-history__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.studio-history__item span {
    position: absolute;
    left: 0.55rem;
    right: 0.55rem;
    bottom: 0.55rem;
    padding: 0.35rem 0.5rem;
    border-radius: 999px;
    background: rgba(8, 12, 17, 0.72);
    color: var(--text);
    font-size: 0.72rem;
    text-align: center;
    backdrop-filter: blur(8px);
}

.studio-status {
    min-height: 1.4rem;
    color: var(--muted);
    line-height: 1.5;
}

.studio-status.is-error {
    color: var(--danger);
}

.generator {
    display: grid;
    gap: 1rem;
}

.generator textarea {
    min-height: 9rem;
    resize: vertical;
}

.generator button {
    width: 100%;
}

#rezultat {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
}

#rezultat img {
    display: block;
    max-width: 100%;
    border-radius: 0.9rem;
    margin-top: 0.75rem;
}

.loader,
.error {
    padding: 1.2rem 0.75rem;
    text-align: center;
}

.error {
    color: var(--danger);
}

@media (max-width: 980px) {
    .entry-shell {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 0.25rem;
    }

    .hero-panel {
        min-height: clamp(30rem, calc(100vh - 8.5rem), 60rem);
    }

    .studio-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 0.9rem;
        padding-bottom: 0.7rem;
    }

    .header-actions {
        width: 100%;
    }

    .action-link,
    .cta {
        width: 100%;
    }

    .hero-copy h1 {
        max-width: 100%;
        font-size: clamp(2.1rem, 13vw, 3.4rem);
    }

    .collage {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        min-height: 24rem;
    }

    .collage-tile:nth-child(n) {
        grid-column: span 3;
        grid-row: span 2;
    }

    .panel-note {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        font-size: 0.85rem;
    }

    .auth-modal__dialog {
        width: 100%;
    }

    .studio-form__grid,
    .studio-history__grid {
        grid-template-columns: 1fr;
    }

    .studio-shell {
        margin: 1rem auto;
        padding: 0.85rem;
        border-radius: 1rem;
    }

    .studio-header__top {
        align-items: flex-start;
    }

    .studio-panel {
        padding: 0.85rem;
        border-radius: 1rem;
    }

    .studio-actions .button {
        flex-basis: 100%;
    }

    .reference-preview__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .reference-preview__remove {
        width: 1.35rem;
        height: 1.35rem;
        font-size: 0.95rem;
    }

    .reference-preview__item figcaption {
        font-size: 0.68rem;
    }
}

@media (min-width: 960px) {
    .auth-panel[data-auth-panel="login"] .auth-form,
    .auth-panel[data-auth-panel="signup"] .auth-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .auth-panel[data-auth-panel="login"] .auth-form .field,
    .auth-panel[data-auth-panel="signup"] .auth-form .field {
        margin-bottom: 0;
    }

    .auth-panel[data-auth-panel="login"] .auth-form .field:last-of-type,
    .auth-panel[data-auth-panel="signup"] .auth-form .field:nth-of-type(3),
    .auth-panel[data-auth-panel="login"] .auth-form button,
    .auth-panel[data-auth-panel="signup"] .auth-form button,
    .auth-panel[data-auth-panel="login"] .button--google,
    .auth-panel[data-auth-panel="signup"] .button--google {
        grid-column: 1 / -1;
    }

    .auth-panel[data-auth-panel="signup"] .auth-form .field:first-of-type {
        grid-column: 1;
    }

    .auth-panel[data-auth-panel="signup"] .auth-form .field:nth-of-type(2) {
        grid-column: 2;
    }
}
