@import url("customers-fix.css");

.customer-auth-page,
.customer-form-page {
    min-height: calc(100vh - 140px);
    display: grid;
    place-items: center;
    padding: 52px 20px 70px;
    background:
        linear-gradient(rgba(7, 60, 45, 0.78), rgba(7, 60, 45, 0.88)),
        var(--afyavine-green-deep);
}

.customer-auth-card,
.customer-form-card {
    width: min(620px, 100%);
    padding: 34px;
    border-radius: 22px;
    background: white;
    box-shadow: var(--shadow);
}

.customer-auth-card h1,
.customer-form-card h1 {
    margin-bottom: 10px;
    font-size: clamp(2.1rem, 4vw, 3.2rem);
}

.customer-form {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.customer-form input,
.customer-form select,
.customer-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cfd7d3;
    border-radius: 9px;
    background: white;
    font: inherit;
}

.customer-form input[type="checkbox"] {
    width: auto;
    min-height: auto;
}

.customer-auth-switch {
    margin: 20px 0 0;
    text-align: center;
}

.customer-auth-switch a {
    color: var(--afyavine-green);
    font-weight: 800;
}

.customer-account-page {
    min-height: calc(100vh - 140px);
    padding: 52px 0 80px;
    background: #f8f8f4;
}

.customer-account-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 26px;
}

.customer-account-heading h1 {
    margin-bottom: 6px;
    font-size: clamp(2.4rem, 4.4vw, 3.9rem);
}

.customer-account-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 16px;
}

.customer-panel,
.customer-future-panel {
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: white;
    box-shadow: 0 10px 36px rgba(7, 60, 45, 0.04);
}

.customer-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.customer-panel-heading h2 {
    margin-bottom: 0;
    font-size: 1.7rem;
}

.customer-panel-heading a,
.customer-address-card a {
    color: var(--afyavine-green);
    font-weight: 800;
    text-decoration: none;
}

.customer-detail-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.customer-detail-list div {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.customer-detail-list div:last-child {
    border-bottom: 0;
}

.customer-detail-list dt {
    color: #728078;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.customer-detail-list dd {
    margin: 4px 0 0;
    font-weight: 700;
}

.customer-address-card {
    padding: 16px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.customer-address-card p {
    margin: 8px 0 10px;
}

.customer-empty-state {
    padding: 24px 0;
}

.customer-future-panel {
    margin-top: 16px;
}

.customer-future-panel h2 {
    margin-bottom: 8px;
    font-size: 2rem;
}

@media (max-width: 760px) {
    .customer-account-heading {
        flex-direction: column;
    }

    .customer-account-grid {
        grid-template-columns: 1fr;
    }
}
