/**
 * TechFix - Customer Portal & Phone/OTP Authentication Stylesheet
 * Fully structured CSS classes
 */

.portal-wrap {
    padding: 120px 0 80px;
    background: #f8fafc;
    min-height: 85vh;
}

.portal-head {
    background: #fff;
    border-radius: 20px;
    padding: 28px 32px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.portal-avatar-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
}

.order-card-portal {
    background: #fff;
    border-radius: 22px;
    padding: 32px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    transition: all .3s var(--ease);
}

.order-card-portal:hover {
    box-shadow: var(--shadow-lg);
    border-color: #bae6fd;
}

.portal-order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
    margin-bottom: 20px;
}

.portal-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    background: #f8fafc;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid var(--line);
    margin-bottom: 20px;
    font-size: .9rem;
}

.portal-payment-history {
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--line);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.portal-pay-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
    font-size: .88rem;
}

.portal-pay-row:last-child {
    border-bottom: none;
}

/* Auth Cards */
.auth-page-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: radial-gradient(circle at 10% 20%, rgba(14, 165, 233, .08) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(20, 184, 166, .08) 0%, transparent 40%),
                #0f172a;
}

.auth-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
    border: 1px solid rgba(255, 255, 255, .1);
}

.auth-logo-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    margin: 0 auto 16px;
    box-shadow: 0 10px 20px -4px rgba(14, 165, 233, .4);
}

.auth-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--ink);
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: .88rem;
    color: var(--muted);
}

.otp-digit-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    direction: ltr;
    margin: 24px 0;
}

.otp-digit {
    width: 50px;
    height: 58px;
    border: 2px solid var(--line);
    border-radius: 14px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--ink);
    transition: all .2s;
}

.otp-digit:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, .2);
    outline: none;
}
