 
:root {
    --background: #080c18;
    --surface: rgba(17, 24, 43, 0.88);
    --border: rgba(148, 163, 184, 0.15);
    --primary: #5485ff;
    --primary-light: #83a7ff;
    --text: #f4f7ff;
    --muted: #929db5;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    overflow-x: hidden;
    position: relative;
}

button,
input {
    font: inherit;
}

.background-glow {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
}

.glow-one {
    top: -180px;
    right: 5%;
    background: #2463ff;
}

.glow-two {
    bottom: -200px;
    left: 5%;
    background: #7738ff;
}

.navbar {
    width: min(1180px, 92%);
    min-height: 100px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    color: inherit;
    text-decoration: none;
}

.brand-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(135deg, #477dff, #7654e9);
    box-shadow: 0 8px 30px rgba(72, 112, 255, 0.25);
    font-size: 25px;
    font-weight: 800;
}

.brand h1 {
    font-size: 20px;
    letter-spacing: -0.7px;
}

.brand h1 span {
    color: var(--primary-light);
    margin-right: 5px;
}

.brand p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #c0cbe0;
    font-size: 13px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #48d6a0;
    box-shadow: 0 0 12px rgba(72, 214, 160, 0.5);
}

.main-container {
    width: min(1080px, 90%);
    min-height: calc(100vh - 175px);
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 85px;
    align-items: center;
    padding: 65px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(84, 133, 255, 0.25);
    background: rgba(84, 133, 255, 0.08);
    border-radius: 30px;
    color: #b9cbff;
    font-size: 12px;
    margin-bottom: 28px;
}

.hero-badge span {
    color: #83a7ff;
    font-size: 18px;
}

.hero h2 {
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.5;
    letter-spacing: -1.5px;
}

.hero h2 span {
    display: block;
    color: var(--primary-light);
}

.hero-description {
    color: var(--muted);
    line-height: 2.1;
    margin-top: 22px;
    max-width: 500px;
    font-size: 15px;
}

.features {
    display: grid;
    gap: 23px;
    margin-top: 40px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    width: 47px;
    height: 47px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.035);
    border-radius: 14px;
    font-size: 20px;
}

.feature h3 {
    font-size: 14px;
    font-weight: 600;
}

.feature p {
    color: var(--muted);
    font-size: 12px;
    margin-top: 6px;
}

.auth-card {
    width: 100%;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 23px;
    box-shadow: 0 25px 90px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(20px);
}

.card-heading {
    text-align: center;
    margin-bottom: 28px;
}

.card-logo {
    width: 53px;
    height: 53px;
    display: grid;
    place-items: center;
    margin: 0 auto 19px;
    border-radius: 17px;
    background: rgba(84, 133, 255, 0.13);
    border: 1px solid rgba(84, 133, 255, 0.25);
    color: var(--primary-light);
    font-weight: 800;
    font-size: 17px;
}

.card-heading h2 {
    font-size: 23px;
}

.card-heading p {
    margin-top: 10px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.8;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 10px;
    color: #dbe4f8;
}

.form-group input {
    width: 100%;
    height: 49px;
    padding: 0 14px;
    background: #0b1020;
    border: 1px solid #27324a;
    border-radius: 11px;
    outline: none;
    color: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder {
    color: #5f6b83;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(84, 133, 255, 0.12);
}

#submitButton {
    width: 100%;
    height: 51px;
    margin-top: 5px;
    border: none;
    border-radius: 11px;
    color: white;
    background: linear-gradient(110deg, #477bff, #6954ed);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: transform 0.2s, opacity 0.2s;
}

#submitButton:hover {
    transform: translateY(-2px);
}

#submitButton:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

.button-arrow {
    font-size: 20px;
}

.form-switch {
    margin-top: 25px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}

.form-switch button {
    border: none;
    background: none;
    color: var(--primary-light);
    font-weight: 700;
    cursor: pointer;
    margin-right: 5px;
}

.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--muted);
}

.message {
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 12px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.message.error {
    color: #ffb4b4;
    background: rgba(255, 70, 70, 0.09);
    border: 1px solid rgba(255, 70, 70, 0.2);
}

.message.success {
    color: #8debc1;
    background: rgba(50, 210, 140, 0.08);
    border: 1px solid rgba(50, 210, 140, 0.2);
}

.hidden {
    display: none !important;
}

footer {
    width: min(1180px, 92%);
    min-height: 75px;
    margin: auto;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    color: #75819a;
    font-size: 11px;
}

@media (max-width: 900px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 45px;
        max-width: 520px;
    }

    .hero {
        text-align: center;
    }

    .hero-description {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-badge {
        justify-content: center;
    }

    .features {
        grid-template-columns: 1fr;
        text-align: right;
        max-width: 350px;
        margin-right: auto;
        margin-left: auto;
    }
}

@media (max-width: 520px) {
    .navbar {
        min-height: 82px;
    }

    .brand-icon {
        width: 42px;
        height: 42px;
    }

    .brand h1 {
        font-size: 16px;
    }

    .nav-status {
        font-size: 10px;
    }

    .main-container {
        padding: 45px 0;
    }

    .hero h2 {
        font-size: 34px;
    }

    .hero-description {
        font-size: 13px;
    }

    .auth-card {
        padding: 24px 19px;
    }

    footer {
        padding: 18px 0;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}
 
/* تحسين خانة إدخال الاسم */
.profile-form input[type="text"] {
display: block;
width: 100%;
min-height: 54px;
padding: 14px 18px;
margin-top: 8px;
border: 1px solid #334155;
border-radius: 12px;
background: #111827;
color: #f1f5f9;
font-family: inherit;
font-size: 16px;
box-sizing: border-box;
outline: none;
transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-form input[type="text"]::placeholder {
color: #94a3b8;
}

.profile-form input[type="text"]:focus {
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* تحسين زر حفظ التغييرات */
.profile-save-button {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
min-height: 52px;
margin-top: 14px;
padding: 14px 20px;
border: none;
border-radius: 12px;
background: linear-gradient(135deg, #2563eb, #0ea5e9);
color: #ffffff;
font-family: inherit;
font-size: 16px;
font-weight: 700;
cursor: pointer;
box-shadow: 0 6px 16px rgba(37, 99, 235, 0.2);
transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.profile-save-button:hover {
transform: translateY(-2px);
box-shadow: 0 9px 22px rgba(37, 99, 235, 0.3);
}

.profile-save-button:active {
transform: translateY(0);
}

.profile-save-button:disabled {
opacity: 0.6;
cursor: wait;
box-shadow: none;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding-left: 45px !important;
    padding-right: 12px;
}

.password-wrapper .toggle-password {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 19px;
    line-height: 1;
    z-index: 5;
}

.password-wrapper .toggle-password:hover {
    opacity: 0.75;
}

