@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #e63946;
    --secondary: #1d3557;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --bg-light: #f9fafb;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Cairo', sans-serif;
    background: var(--bg-light);
    color: var(--secondary);
    direction: rtl;
}

body {
    min-height: 100vh;
}

/* NAVBAR */
.main-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-right,
.navbar-left {
    display: flex;
    align-items: center;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-text h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.1;
    color: var(--secondary);
    font-weight: 800;
}

.brand-text p {
    margin: 0;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.2;
}

.brand-logo-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(230, 57, 70, 0.15);
    flex-shrink: 0;
}

.brand-logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.navbar-left {
    gap: 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--primary);
}

.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 28px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.18);
}

.login-btn:hover {
    background: #d92f3c;
}

/* HERO */
.hero-section {
    position: relative;
    background: #ffffff;
    border-bottom: 1px solid #f1f1f1;
    overflow: hidden;
    padding: 80px 20px 90px;
}

.hero-bg-shape {
    position: absolute;
    border-radius: 999px;
    filter: blur(65px);
    opacity: 0.28;
    pointer-events: none;
}

.hero-bg-shape-left {
    top: -70px;
    left: -70px;
    width: 380px;
    height: 380px;
    background: rgba(230, 57, 70, 0.12);
}

.hero-bg-shape-right {
    top: 180px;
    right: 0;
    width: 260px;
    height: 260px;
    background: rgba(29, 53, 87, 0.10);
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

.hero-logo-wrap {
    position: relative;
    width: 230px;
    height: 230px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right, rgba(230,57,70,0.15), rgba(29,53,87,0.12));
    border-radius: 999px;
}

.hero-logo {
    position: relative;
    z-index: 2;
    width: 210px;
    height: 210px;
    object-fit: contain;
    filter: drop-shadow(0 18px 24px rgba(0,0,0,0.12));
}

.hero-title {
    margin: 0 0 12px;
    font-size: 88px;
    line-height: 1.05;
    font-weight: 900;
}

.hero-title-blue {
    color: var(--secondary);
}

.hero-title-red {
    color: var(--primary);
}

.hero-subtitle {
    margin: 0 auto;
    max-width: 900px;
    font-size: 27px;
    line-height: 1.8;
    color: #6d7f9b;
    font-weight: 500;
}

/* SERVICES */
.services-area {
    max-width: 1280px;
    margin: 0 auto;
    padding: 95px 24px 120px;
}

.services-heading {
    text-align: center;
    margin-bottom: 48px;
}

.services-heading h2 {
    margin: 0;
    font-size: 54px;
    color: var(--secondary);
    font-weight: 800;
}

.services-underline {
    width: 132px;
    height: 8px;
    background: var(--primary);
    border-radius: 999px;
    margin: 18px auto 0;
}

.services-login-text {
    margin-top: 38px;
    font-size: 28px;
    color: #6d7f9b;
    font-weight: 500;
}

.big-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 360px;
    height: 88px;
    margin-top: 42px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 34px;
    font-weight: 800;
}

.big-login-btn:hover {
    background: #d92f3c;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    text-decoration: none;
    color: inherit;
}

.service-card-inner {
    height: 100%;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 24px;
    padding: 34px 28px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.05);
    text-align: center;
    transition: 0.28s ease;
}

.service-card-inner:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 30px rgba(230, 57, 70, 0.10);
    border-color: rgba(230, 57, 70, 0.35);
}

.service-card-inner h3 {
    margin: 0 0 10px;
    font-size: 32px;
    color: var(--secondary);
    font-weight: 800;
}

.service-card-inner p {
    margin: 0 0 18px;
    color: var(--primary);
    font-size: 24px;
    font-weight: 800;
}

.service-card-inner span {
    color: #71809a;
    font-size: 18px;
    font-weight: 600;
}

/* FOOTER */
.main-footer {
    background: var(--secondary);
    color: #fff;
    padding: 52px 20px;
}

.footer-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 22px;
}

.footer-brand img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer-brand h3 {
    margin: 0;
    color: #fff;
    font-size: 34px;
    font-weight: 800;
}

.footer-inner p {
    margin: 0;
    color: rgba(255,255,255,0.6);
    font-size: 15px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero-title {
        font-size: 64px;
    }

    .hero-subtitle {
        font-size: 22px;
    }

    .services-heading h2 {
        font-size: 42px;
    }

    .services-login-text {
        font-size: 23px;
    }

    .big-login-btn {
        min-width: 280px;
        height: 74px;
        font-size: 28px;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar-container {
        height: auto;
        padding-top: 16px;
        padding-bottom: 16px;
        flex-direction: column;
        gap: 16px;
    }

    .navbar-left {
        flex-direction: column;
        gap: 14px;
    }

    .brand-text h1 {
        font-size: 28px;
    }

    .hero-logo-wrap {
        width: 180px;
        height: 180px;
    }

    .hero-logo {
        width: 160px;
        height: 160px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .services-heading h2 {
        font-size: 34px;
    }

    .services-login-text {
        font-size: 18px;
    }

    .big-login-btn {
        min-width: 220px;
        height: 62px;
        font-size: 22px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card-inner h3 {
        font-size: 26px;
    }

    .service-card-inner p {
        font-size: 20px;
    }
}
/* AUTH PAGES */
.auth-page {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.auth-card {
    width: 100%;
    max-width: 560px;
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.07);
    border: 1px solid #f0f0f0;
}

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

.auth-header h2 {
    margin: 0 0 10px;
    font-size: 38px;
    color: var(--secondary);
    font-weight: 800;
}

.auth-header p {
    margin: 0;
    color: #6d7f9b;
    font-size: 18px;
    line-height: 1.8;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary);
}

.form-group input {
    height: 56px;
    border: 1px solid #d9dee7;
    border-radius: 12px;
    padding: 0 16px;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    outline: none;
    background: #fff;
    transition: 0.2s ease;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.08);
}

.auth-submit-btn {
    margin-top: 10px;
    height: 58px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
}

.auth-submit-btn:hover {
    background: #d92f3c;
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
}

.auth-footer p {
    margin: 0;
    color: #6d7f9b;
    font-size: 16px;
}

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

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

.auth-alert {
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 15px;
}

.auth-alert.error {
    background: rgba(230, 57, 70, 0.08);
    border: 1px solid rgba(230, 57, 70, 0.18);
    color: #b4232d;
}

.auth-alert ul {
    margin: 0;
    padding-right: 18px;
}

.auth-alert p {
    margin: 0;
}

@media (max-width: 768px) {
    .auth-card {
        padding: 28px 20px;
        border-radius: 18px;
    }

    .auth-header h2 {
        font-size: 30px;
    }

    .auth-header p {
        font-size: 16px;
    }

    .auth-submit-btn {
        font-size: 18px;
    }
}
/* =========================
   AUTH PAGES
========================= */

.auth-wrapper {
    min-height: calc(100vh - 220px);
    padding: 70px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.auth-box {
    width: 100%;
    max-width: 560px;
    background: #ffffff;
    border: 1px solid #eef1f5;
    border-radius: 24px;
    padding: 40px 34px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
}

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

.auth-head h2 {
    margin: 0 0 10px;
    color: var(--secondary);
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
}

.auth-head p {
    margin: 0;
    color: #71809a;
    font-size: 19px;
    line-height: 1.8;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    color: var(--secondary);
    font-size: 16px;
    font-weight: 700;
}

.input-group input {
    width: 100%;
    height: 56px;
    border: 1px solid #d6dde8;
    border-radius: 12px;
    padding: 0 16px;
    background: #fff;
    color: var(--secondary);
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    outline: none;
    transition: 0.2s ease;
}

.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.08);
}

.auth-btn {
    width: 100%;
    height: 58px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: #ffffff;
    font-family: 'Cairo', sans-serif;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
    margin-top: 8px;
}

.auth-btn:hover {
    background: #d92f3c;
}

.auth-links {
    margin-top: 22px;
    text-align: center;
}

.auth-links p {
    margin: 0;
    color: #71809a;
    font-size: 16px;
}

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

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

.auth-message {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 15px;
    line-height: 1.7;
}

.error-message {
    background: rgba(230, 57, 70, 0.08);
    border: 1px solid rgba(230, 57, 70, 0.18);
    color: #b4232d;
}

@media (max-width: 768px) {
    .auth-wrapper {
        padding: 40px 14px;
    }

    .auth-box {
        padding: 28px 20px;
        border-radius: 18px;
    }

    .auth-head h2 {
        font-size: 30px;
    }

    .auth-head p {
        font-size: 16px;
    }

    .auth-btn {
        font-size: 18px;
        height: 54px;
    }
}