/*
|--------------------------------------------------------------------------
| JOELSTORE - FORMS CSS
|--------------------------------------------------------------------------
*/

.form-page {
    width: 100%;
    max-width: 520px;
    margin: 40px auto;
}

.form-page.wide {
    max-width: 760px;
}

.form-card {
    padding: 28px;
    background: #202124;
    border: 1px solid #303134;
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(0,0,0,.18);
}

.form-header {
    margin-bottom: 24px;
}

.form-header h1 {
    margin: 0 0 7px;
    color: #fff;
    font-size: 24px;
    font-weight: 850;
}

.form-header p {
    margin: 0;
    color: #999b9f;
    font-size: 13px;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 17px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: #e5e5e7;
    font-size: 13px;
    font-weight: 700;
}

.form-control,
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 13px;

    background: #292a2c;
    border: 1px solid #3a3b3e;
    border-radius: 9px;

    outline: none;

    color: #fff;
    font: inherit;
    font-size: 13px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.form-control::placeholder,
.form-input::placeholder,
.form-textarea::placeholder {
    color: #77797d;
}

.form-control:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    background: #2d2e30;
    border-color: #ff7415;
    box-shadow: 0 0 0 3px rgba(255,116,21,.09);
}

.form-textarea {
    min-height: 130px;
    resize: vertical;
}

.form-select {
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
}

.form-actions .btn {
    flex: 1;
}

.form-submit {
    width: 100%;
    min-height: 44px;
    padding: 0 18px;

    border: 0;
    border-radius: 9px;

    background: #ff7415;
    color: #fff;

    font-size: 13px;
    font-weight: 800;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.form-submit:hover {
    background: #ff842f;
    box-shadow: 0 8px 25px rgba(255,116,21,.18);
}

.form-submit:active {
    transform: scale(.98);
}

.form-link {
    color: #ff7415;
    text-decoration: none;
    font-weight: 700;
}

.form-link:hover {
    text-decoration: underline;
}

.form-footer {
    margin-top: 20px;
    padding-top: 18px;

    border-top: 1px solid #303134;

    text-align: center;
    color: #999b9f;
    font-size: 12px;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;

    color: #aaa;
    font-size: 12px;
    line-height: 1.5;
}

.checkbox-row input {
    margin-top: 2px;
    accent-color: #ff7415;
}

.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .form-control {
    border-radius: 9px 0 0 9px;
}

.input-addon {
    display: flex;
    align-items: center;

    padding: 0 13px;

    background: #333438;
    border: 1px solid #3a3b3e;
    border-left: 0;
    border-radius: 0 9px 9px 0;

    color: #aaa;
    font-size: 12px;
}

.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;

    transform: translateY(-50%);

    border: 0;
    background: transparent;

    color: #999;
    cursor: pointer;
}

.password-toggle:hover {
    color: #ff7415;
}

.form-error {
    margin-top: 6px;
    color: #ff7373;
    font-size: 11px;
}

.form-help {
    margin-top: 6px;
    color: #77797d;
    font-size: 11px;
    line-height: 1.5;
}

/* Login / Register */

.auth-page {
    min-height: calc(100vh - 180px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 35px 0;
}

.auth-card {
    width: 100%;
    max-width: 440px;

    padding: 30px;

    background: #202124;
    border: 1px solid #303134;
    border-radius: 18px;
}

.auth-logo {
    margin-bottom: 20px;
    text-align: center;

    color: #fff;
    font-size: 27px;
    font-weight: 950;
    font-style: italic;
}

.auth-logo span {
    color: #ff7415;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 22px 0;

    color: #66686c;
    font-size: 11px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #303134;
}

/* Checkout */

.checkout-page {
    padding: 25px 0 50px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr);
    gap: 20px;
}

.checkout-card {
    padding: 20px;

    background: #202124;
    border: 1px solid #303134;
    border-radius: 14px;
}

.checkout-card h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 17px;
}

.checkout-summary {
    position: sticky;
    top: 135px;
}

.checkout-product {
    display: flex;
    align-items: center;
    gap: 12px;

    padding-bottom: 15px;
    margin-bottom: 15px;

    border-bottom: 1px solid #303134;
}

.checkout-product-image {
    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #303134;
    border-radius: 10px;

    color: #fff;
    font-size: 22px;
}

.checkout-product strong {
    display: block;
    color: #fff;
    font-size: 13px;
}

.checkout-product small {
    color: #888;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;

    padding: 8px 0;

    color: #aaa;
    font-size: 12px;
}

.summary-row.total {
    margin-top: 10px;
    padding-top: 15px;

    border-top: 1px solid #343538;

    color: #fff;
    font-size: 16px;
    font-weight: 850;
}

.summary-row.total strong {
    color: #ff7415;
}

/* Wallet */

.wallet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.wallet-balance {
    padding: 22px;

    background: linear-gradient(
        135deg,
        #28292c,
        #202124
    );

    border: 1px solid #38393c;
    border-radius: 15px;
}

.wallet-balance small {
    color: #999;
}

.wallet-balance strong {
    display: block;
    margin-top: 7px;

    color: #fff;
    font-size: 27px;
}

.wallet-action {
    display: flex;
    gap: 9px;
    margin-top: 18px;
}

.wallet-action .btn {
    flex: 1;
}

/* Responsive */

@media (max-width: 800px) {

    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }

}

@media (max-width: 600px) {

    .form-page {
        margin: 20px auto;
    }

    .form-card,
    .auth-card {
        padding: 20px;
        border-radius: 13px;
    }

    .form-header h1 {
        font-size: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn,
    .form-submit {
        width: 100%;
    }

    .auth-page {
        padding: 20px 0;
    }

    .auth-card {
        max-width: none;
    }

    .wallet-grid {
        grid-template-columns: 1fr;
    }

    .checkout-card {
        padding: 15px;
    }

    .checkout-product-image {
        width: 50px;
        height: 50px;
    }

}