/* ==========================================================
   Motion Studio SaaS - أنماط صفحات الدخول والتسجيل والأسعار
   تصميم فاخر داكن RTL متناسق تماماً مع هوية الاستوديو
   ========================================================== */

@import url('../../fonts/fonts.css');

:root {
    --bg-dark: #141414;
    --bg-card: rgba(38, 38, 38, 0.85);
    --bg-input: rgba(38, 38, 38, 0.7);
    --primary: #00c1cd;
    --primary-hover: #0697a1;
    --accent: #00c1cd;
    --text-main: #e6e6e6;
    --text-muted: #979797;
    --border: rgba(0, 193, 205, 0.2);
    --border-hover: rgba(0, 193, 205, 0.5);
    --danger: #ef4444;
    --success: #10b981;
    --radius: 14px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    direction: rtl;
    background: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: none;
    background-attachment: fixed;
}

/* الترويسة الرئيسية */
.auth-header {
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    font-size: 1.3rem;
}

.logo-badge {
    background: #4f4f4f;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: none;
}

.auth-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    margin-right: 20px;
}

.auth-nav a:hover {
    color: var(--accent);
}

/* حاوية الاستمارة */
.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-title {
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-align: center;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #c8c8c8;
}

.form-input {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.2s;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 193, 205, 0.25);
}

.form-input::placeholder {
    color: #909090;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: #4f4f4f;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: none;
    margin-top: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.alert-box {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: none;
}

.alert-box.show {
    display: block;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

/* صفحة الأسعار والباقات (Pricing) */
.pricing-section {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 50px;
}

.pricing-header h1 {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.pricing-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: blur(12px);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    box-shadow: none;
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #4f4f4f;
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.plan-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
}

.plan-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.plan-features {
    list-style: none;
    margin-bottom: 30px;
    flex: 1;
}

.plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #c8c8c8;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features li::before {
    content: "✓";
    color: var(--accent);
    font-weight: bold;
}

.plan-features li.disabled {
    color: #909090;
    text-decoration: line-through;
}

.plan-features li.disabled::before {
    content: "✕";
    color: #909090;
}

/* ثيمة الاستوديو: رماديات محايدة، والفيروزي للتمييز فقط */
:root {
    --bg-dark: #141414;
    --bg-card: #262626;
    --bg-input: #1b1b1c;
    --primary: #00c1cd;
    --primary-hover: #0697a1;
    --accent: #00c1cd;
    --text-main: #e6e6e6;
    --text-muted: #979797;
    --border: #3a3a3a;
    --border-hover: rgba(0, 193, 205, 0.5);
}

body {
    background-image: none;
}

.logo-badge {
    background: #d6d6d6;
    color: #141414;
    box-shadow: none;
}
