/* Media Tourch — auth pages
 * Branded login / register / forgot / reset / dashboard.
 * Inherits the dark theme + #ff6b35 accent established by the homepage.
 */

.mt-auth-page {
    background: #0a0c10;
    color: #e6e6e6;
    min-height: 100vh;
    direction: rtl;
}

.mt-auth-shell {
    min-height: calc(100vh - 80px);
    display: grid;
    place-items: center;
    padding: 60px 20px;
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 107, 53, 0.08), transparent 60%),
        radial-gradient(circle at 80% 100%, rgba(255, 138, 76, 0.06), transparent 50%),
        #0a0c10;
}

.mt-auth-card {
    width: 100%;
    max-width: 460px;
    background: #11141a;
    border: 1px solid #1f2330;
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
}

.mt-auth-card.is-wide { max-width: 540px; }

.mt-auth-card__brand {
    text-align: center;
    margin-bottom: 28px;
}

.mt-auth-card__brand img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.mt-auth-card__title {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    background: linear-gradient(135deg, #ff6b35, #ff8a4c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mt-auth-card__sub {
    text-align: center;
    color: #9aa0a6;
    font-size: 14px;
    margin: 0 0 28px;
    line-height: 1.6;
}

/* Form fields */
.mt-field { margin-bottom: 14px; }

.mt-field label {
    display: block;
    color: #c8ccd1;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
}

.mt-field input[type="text"],
.mt-field input[type="email"],
.mt-field input[type="password"],
.mt-field input[type="tel"] {
    width: 100%;
    background: #0a0c10;
    border: 1px solid #1f2330;
    border-radius: 10px;
    padding: 12px 14px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}

.mt-field input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.mt-field--inline {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9aa0a6;
    font-size: 13px;
    margin: 14px 0;
}

.mt-field--inline input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #ff6b35;
    cursor: pointer;
}

.mt-field--inline label {
    margin: 0;
    cursor: pointer;
    color: #c8ccd1;
}

/* Buttons */
.mt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(135deg, #ff6b35, #ff8a4c);
    color: #0a0c10;
    border: 0;
    border-radius: 12px;
    padding: 14px 18px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    font-family: inherit;
    transition: transform .12s, box-shadow .15s, opacity .15s;
}

.mt-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(255, 107, 53, 0.25); }
.mt-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.mt-btn--ghost {
    background: transparent;
    color: #c8ccd1;
    border: 1px solid #1f2330;
}
.mt-btn--ghost:hover { background: #0e1117; box-shadow: none; }

.mt-btn--block { width: 100%; }

/* Divider */
.mt-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: #5f6573;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.mt-divider::before, .mt-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #1f2330;
}

/* Social buttons (placeholder for future Google/Facebook hookup) */
.mt-social { display: grid; gap: 10px; }
.mt-social__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #0a0c10;
    border: 1px solid #1f2330;
    border-radius: 12px;
    padding: 12px 14px;
    color: #c8ccd1;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: border-color .15s, background .15s;
    text-decoration: none;
}
.mt-social__btn:hover { border-color: #2c3142; background: #0e1117; }
.mt-social__btn[disabled] { opacity: .55; cursor: not-allowed; }
.mt-social__btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.mt-social__btn--soon::after {
    content: 'قريباً';
    margin-inline-start: auto;
    background: rgba(255,107,53,.15);
    color: #ff8a4c;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
}

/* Footer of card */
.mt-auth-card__footer {
    margin-top: 24px;
    text-align: center;
    color: #9aa0a6;
    font-size: 14px;
}
.mt-auth-card__footer a {
    color: #ff8a4c;
    text-decoration: none;
    font-weight: 600;
}
.mt-auth-card__footer a:hover { text-decoration: underline; }

/* Inline messages */
.mt-msg {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    margin-bottom: 14px;
    line-height: 1.5;
    display: none;
}
.mt-msg.is-shown { display: block; }
.mt-msg.is-error {
    background: rgba(255, 80, 80, 0.08);
    border: 1px solid rgba(255, 80, 80, 0.25);
    color: #ff8888;
}
.mt-msg.is-success {
    background: rgba(80, 200, 120, 0.08);
    border: 1px solid rgba(80, 200, 120, 0.25);
    color: #7ad59a;
}

/* Password visibility toggle */
.mt-password-wrap {
    position: relative;
}
.mt-password-toggle {
    position: absolute;
    inset-inline-end: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: #9aa0a6;
    cursor: pointer;
    padding: 4px;
    font-size: 12px;
    font-family: inherit;
}
.mt-password-toggle:hover { color: #ff8a4c; }

/* Forgot link inside login */
.mt-forgot-link {
    display: block;
    text-align: end;
    color: #9aa0a6;
    font-size: 13px;
    text-decoration: none;
    margin-bottom: 8px;
}
.mt-forgot-link:hover { color: #ff8a4c; }

/* ============= Dashboard ============= */
.mt-dash {
    background: #0a0c10;
    color: #e6e6e6;
    min-height: 100vh;
    direction: rtl;
}

.mt-dash__hero {
    background:
        radial-gradient(circle at 80% 0%, rgba(255, 107, 53, 0.12), transparent 50%),
        #11141a;
    border-bottom: 1px solid #1f2330;
    padding: 56px 20px 40px;
    text-align: center;
}
.mt-dash__hero h1 {
    margin: 0 0 8px;
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 700;
    color: #fff;
}
.mt-dash__hero h1 span {
    background: linear-gradient(135deg, #ff6b35, #ff8a4c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.mt-dash__hero p {
    margin: 0;
    color: #9aa0a6;
    font-size: 16px;
}

.mt-dash__wrap {
    max-width: 1100px;
    margin: -30px auto 60px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
@media (max-width: 720px) { .mt-dash__wrap { grid-template-columns: 1fr; } }

.mt-dash__card {
    background: #11141a;
    border: 1px solid #1f2330;
    border-radius: 16px;
    padding: 28px;
}
.mt-dash__card.is-wide { grid-column: 1 / -1; }

.mt-dash__card h2 {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.mt-dash__row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #1f2330;
    color: #c8ccd1;
    font-size: 14px;
}
.mt-dash__row:last-child { border-bottom: 0; }
.mt-dash__row b { color: #fff; font-weight: 600; }
.mt-dash__row .muted { color: #9aa0a6; }

.mt-dash__empty {
    color: #9aa0a6;
    font-size: 14px;
    background: #0e1117;
    border: 1px dashed #1f2330;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.mt-dash__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff6b35, #ff8a4c);
    color: #0a0c10;
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    margin-top: 14px;
}
.mt-dash__cta:hover { transform: translateY(-1px); }

/* Navbar member chip (logged in) */
.mt-nav__member {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.25);
    color: #ff8a4c;
    border-radius: 10px;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background .15s;
}
.mt-nav__member:hover { background: rgba(255, 107, 53, 0.18); }

.mt-nav__login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #c8ccd1;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 10px;
    transition: color .15s;
}
.mt-nav__login:hover { color: #ff8a4c; }
