/**
 * EcoFlow Custom Forms — Styles
 * Dosya: assets/css/ecoflow-custom-forms.css
 */

/* ── WRAPPER ── */
.ecf-wrapper {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    font-family: "manrope-new", Arial, sans-serif;
}

#ecf-login .ecf-title {
    font-size: 20px;
    font-weight: 700;
    color: #03060b;
    margin: 0 0 20px;
    line-height: 1.2;
}

/* ── MESAJ ── */
.ecf-messages {
    display: none;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.ecf-messages.ecf-msg-error {
    background: #fff2f2;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

.ecf-messages.ecf-msg-success {
    background: #f0faf4;
    color: #1a7a3c;
    border: 1px solid #b7dfc8;
}

/* ── FLOATING LABEL FIELD ── */
.ecf-field-group {
    position: relative;
    margin-bottom: 24px;
}

#ecf-register .ecf-input,
#ecf-login .ecf-input,
#ecf-checkout-auth .ecf-input {
    width: 100%;
    height: 52px;
    padding: 20px 16px 6px 16px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 14px;
    color: #03060b;
    background: #fff;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
}

.ecf-input.has-toggle {
    padding-right: 46px;
}

.ecf-input:hover {
    border-color: #03060b;
}

.ecf-input.ecf-error {
    border-color: #e74c3c;
}

/* Floating label */
.ecf-label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #000;
    pointer-events: none;
    transition: top .18s ease, font-size .18s ease, color .18s ease;
    line-height: 1;
    white-space: nowrap;
}

.ecf-input:focus ~ .ecf-label,
.ecf-input.has-value ~ .ecf-label {
    top: 10px;
    transform: none;
    font-size: 11px;
    color: #b1b3b5;
}

.ecf-req {
    color: #e74c3c;
    margin-left: 2px;
}

/* ── ŞİFRE TOGGLE ── */
.ecf-pass-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: color .2s;
    line-height: 0;
}

.ecf-pass-toggle:hover {
    color: #03060b;
}

.ecf-pass-toggle .ecf-icon-open {
    display: none;
}

.ecf-pass-toggle.is-visible .ecf-icon-closed {
    display: none;
}

.ecf-pass-toggle.is-visible .ecf-icon-open {
    display: block;
}

/* ── CHECKBOX ── */
.ecf-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 4px 0 20px;
}

.ecf-check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #919191;
    line-height: 1.5;
    user-select: none;
}

.ecf-check-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ecf-check-box {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border: 1.5px solid #c0c8d2;
    border-radius: 3px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .15s, background .15s;
}

.ecf-check-input:checked + .ecf-check-box {
    /* background: #03060b; */
    color: #000;
    border-color: #03060b;
}

.ecf-check-input:checked + .ecf-check-box::after {
    content: '';
    display: block;
    width: 7px;
    height: 11px;
    border: 2px solid #000;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
}

#kvkk-onay.ecf-check-label a {
    color: #03060b;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ecf-check-label a:hover {
    opacity: .7;
}

/* ── BUTON ── */
.ecf-btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity .2s, transform .1s;
    letter-spacing: .01em;
    font-family: inherit;
    margin-bottom: 14px;
}


.ecf-btn:active:not(:disabled) {
    transform: translateY(1px);
}

.ecf-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.ecf-btn-primary {
    background: #03060b;
    color: #fff;
}

.ecf-btn-primary:hover:not(:disabled) {
    background: #444;
}

.ecf-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ecf-spin .7s linear infinite;
    display: none;
}

@keyframes ecf-spin {
    to { transform: rotate(360deg); }
}

/* ── ALT LİNKLER ── */
.ecf-top-links {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
}

#ecf-login .ecf-top-links a,
#ecf-checkout-auth .ecf-top-links a {
    font-size: 12px;
    color: #999;
    text-decoration: none;
}

.ecf-top-links a:hover {
    color: #03060b;
    text-decoration: underline;
}

.ecf-alt-link {
    text-align: center;
    font-size: 13px;
    color: #555;
}

#ecf-login  .ecf-alt-link a {
    width: 100%;
    height: 52px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity .2s, transform .1s;
    letter-spacing: .01em;
    font-family: inherit;
    margin-bottom: 14px;
    color: #000;
    border: 1px solid #000;
}


/* ── MOBİL ── */
@media (max-width: 1024px) {
    .ecf-wrapper {
        max-width: 100%;
    }

}
@media (max-width: 480px) {

    .ecf-input {
        font-size: 14px; /* iOS zoom önleme */
        height: 48px;
    }

    .ecf-btn {
        height: 56px;
        background: #000;
        color: #fff;
        font-size: 16px;
        font-weight: 700;
        }
}
/* ── CHECKOUT AUTH TAB ── */
.ecf-ca-tabs {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 24px;
}

.ecf-ca-tab {
    flex: 1;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 600;
    color: #9ca3af;
    cursor: pointer;
    font-family: inherit;
    transition: color .2s, border-color .2s;
}

.ecf-ca-tab.is-active {
    color: #03060b;
    border-bottom-color: #03060b;
}

.ecf-ca-tab:hover:not(.is-active) {
    color: #555;
}

.ecf-ca-panel {
    display: none;
}

.ecf-ca-panel.is-active {
    display: block;
}

.ecf-ca-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
    color: #9ca3af;
    font-size: 13px;
}

.ecf-ca-divider::before,
.ecf-ca-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.ecf-btn-guest {
    width: 100%;
    height: 52px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: inherit;
    transition: opacity .2s;
    margin: 14px 0;
    box-sizing: border-box;
}

.ecf-btn-guest:hover {
    opacity: .85;
    color: #fff;
}

.ecf-ca-help {
    text-align: center;
    font-size: 13px;
    color: #555;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.ecf-ca-help a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.ecf-ca-help a:hover {
    text-decoration: underline;
}