﻿:root {
    --primary-color: #6C5CE7;
    --secondary-color: #00D9F5;
    --accent-color: #FD79A8;
    --dark-bg: #0F0E17;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.18);
    --text-light: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.6);
    --error-color: #FF6B6B;
   



    --success-color: #00D9A3;


}
/* إخفاء الـ div تماماً عندما لا توجد أخطاء */
div.validation-summary-valid {
    display: none;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Tajawal', sans-serif;
    overflow: hidden;
}

body {
    /* background: var(--dark-bg);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;*/
    background: var(--dark-bg);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 30px 15px;
    overflow-y: auto; /* ✅ إضافة جديدة */

}

/* ===== Animated Background ===== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(-45deg, #0F0E17, #1a1a2e, #16213e, #0f3460);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

  @keyframes gradientBG {
                0% {
                    background-position: 0% 50%;
                }

                50% {
                    background-position: 100% 50%;
                }

                100% {
                    background-position: 0% 50%;
                }
            } 

/* Floating Shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: float 8s ease-in-out infinite;
}

.shape1 {
    width: 350px;
    height: 350px;
    background: var(--primary-color);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    bottom: -80px;
    left: -80px;
    animation-delay: 2s;
}

.shape3 {
    width: 250px;
    height: 250px;
    background: var(--accent-color);
    top: 50%;
    left: 50%;
    animation-delay: 4s;
    opacity: 0.3;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-10vh) translateX(100px);
        opacity: 0;
    }
}

/* ===== Login Card ===== */
.login-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 45px 35px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.05) inset;
    position: relative;
    overflow: hidden;
}

    .login-card::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent, rgba(255,255,255,0.03), transparent);
        animation: shine 6s infinite;
    }

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Logo/Icon */
.login-icon-wrapper {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.login-icon {
    width: 85px;
    height: 85px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.4);
    animation: pulse 2.5s ease-in-out infinite;
    transform: rotate(-5deg);
}

    .login-icon i {
        font-size: 38px;
        color: white;
    }

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(108, 92, 231, 0.4);
    }

    50% {
        box-shadow: 0 10px 45px rgba(0, 217, 245, 0.6);
    }
}

.login-title {
    text-align: center;
    color: var(--text-light);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.login-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 35px;
    position: relative;
    z-index: 2;
}

/* Form Groups */
.form-group-custom {
    margin-bottom: 22px;
    position: relative;
    z-index: 2;
}

.form-label-custom {
    display: block;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    opacity: 0.9;
}

.input-icon-wrapper {
    position: relative;
}

    .input-icon-wrapper i.field-icon {
        position: absolute;
        right: 18px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--secondary-color);
        font-size: 16px;
        z-index: 2;
        transition: all 0.3s ease;
    }

.form-control-custom {
    width: 100%;
    padding: 15px 50px 15px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    color: var(--text-light);
    font-size: 15px;
    font-family: 'Tajawal', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

    .form-control-custom::placeholder {
        color: rgba(255, 255, 255, 0.35);
    }

    .form-control-custom:focus {
        background: rgba(255, 255, 255, 0.1);
        border-color: var(--secondary-color);
        box-shadow: 0 0 0 4px rgba(0, 217, 245, 0.15);
    }

        .form-control-custom:focus ~ i.field-icon,
        .input-icon-wrapper:focus-within i.field-icon {
            color: var(--primary-color);
            transform: translateY(-50%) scale(1.1);
        }

.text-danger-custom {
    color: var(--error-color);
    font-size: 13px;
    margin-top: 6px;
    display: block;
}

.form-control-custom.input-validation-error {
    border-color: var(--error-color);
}

/* Password Toggle */
.toggle-password {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    font-size: 15px;
    z-index: 2;
    transition: color 0.3s ease;
}

    .toggle-password:hover {
        color: var(--secondary-color);
    }

/* Remember & Forgot Row */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    position: relative;
    z-index: 2;
}

.remember-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.05);
    cursor: pointer;
    accent-color: var(--primary-color);
}

.remember-label {
    color: var(--text-muted);
    font-size: 13.5px;
    cursor: pointer;
    user-select: none;
}

.forgot-link {
    color: var(--secondary-color);
    font-size: 13.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

    .forgot-link:hover {
        color: var(--accent-color);
        text-decoration: underline;
    }

/* Login Button */
.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    position: relative;
    z-index: 2;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(108, 92, 231, 0.35);
}

    .btn-login::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.5s ease;
    }

    .btn-login:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(0, 217, 245, 0.45);
    }

        .btn-login:hover::before {
            left: 100%;
        }

    .btn-login:active {
        transform: translateY(-1px);
    }

    .btn-login i {
        margin-left: 8px;
    }

/* Divider */
.divider-custom {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 28px 0;
    position: relative;
    z-index: 2;
}

    .divider-custom::before,
    .divider-custom::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .divider-custom span {
        padding: 0 15px;
        color: var(--text-muted);
        font-size: 13px;
    }

/* Register Link */
.register-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    position: relative;
    z-index: 2;
}

.register-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
}

    .register-link::after {
        content: '';
        position: absolute;
        bottom: -2px;
        right: 0;
        width: 0;
        height: 2px;
        background: var(--accent-color);
        transition: width 0.3s ease;
    }

    .register-link:hover::after {
        width: 100%;
    }

/* Validation Summary */
.validation-summary-errors {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

    .validation-summary-errors ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .validation-summary-errors li {
        color: var(--error-color);
        font-size: 13.5px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .validation-summary-errors li::before {
            content: '\f06a';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
        }

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 35px 25px;
        border-radius: 20px;
    }

    .login-title {
        font-size: 24px;
    }
}

/* Loading state */
.btn-login.loading {
    pointer-events: none;
    opacity: 0.8;
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
    font-family: 'Tajawal', sans-serif;
}

body {
    background: var(--dark-bg);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 30px 15px;
}

/* ===== Animated Background ===== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(-45deg, #0F0E17, #1a1a2e, #16213e, #0f3460);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: float 8s ease-in-out infinite;
}

.shape1 {
    width: 350px;
    height: 350px;
    background: var(--primary-color);
    top: -100px;
    right: -100px;
}

.shape2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    bottom: -80px;
    left: -80px;
    animation-delay: 2s;
}

.shape3 {
    width: 250px;
    height: 250px;
    background: var(--accent-color);
    top: 50%;
    left: 50%;
    animation-delay: 4s;
    opacity: 0.3;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-10vh) translateX(100px);
        opacity: 0;
    }
}

/* ===== Register Card ===== */
.register-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 650px;
}

.register-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.05) inset;
    position: relative;
    overflow: hidden;
}

    .register-card::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent, rgba(255,255,255,0.03), transparent);
        animation: shine 6s infinite;
    }

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.login-icon-wrapper {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.login-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.4);
    animation: pulse 2.5s ease-in-out infinite;
    transform: rotate(-5deg);
}

    .login-icon i {
        font-size: 34px;
        color: white;
    }

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(108, 92, 231, 0.4);
    }

    50% {
        box-shadow: 0 10px 45px rgba(0, 217, 245, 0.6);
    }
}

.register-title {
    text-align: center;
    color: var(--text-light);
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 5px;
    position: relative;
    z-index: 2;
}

.register-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

/* ===== Steps Progress ===== */
.steps-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
}

.step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 16px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.step-item.active .step-circle {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
    color: white;
    box-shadow: 0 5px 20px rgba(108, 92, 231, 0.5);
    transform: scale(1.1);
}

.step-item.completed .step-circle {
    background: linear-gradient(135deg, var(--success-color), #00B894);
    border-color: transparent;
    color: white;
}

.step-label {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
}

.step-item.active .step-label {
    color: var(--text-light);
    font-weight: 700;
}

.step-line {
    position: absolute;
    top: 22px;
    right: 50%;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.15);
    z-index: 1;
}

.step-item:first-child .step-line {
    display: none;
}

.step-item.completed .step-line,
.step-item.active .step-line {
    background: linear-gradient(90deg, var(--success-color), var(--primary-color));
}

/* ===== Form Steps ===== */
.form-step {
    display: none;
    animation: fadeInStep 0.5s ease;
}

    .form-step.active {
        display: block;
    }

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-section-title {
    color: var(--secondary-color);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group-custom {
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.form-label-custom {
    display: block;
    color: var(--text-light);
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 7px;
    opacity: 0.9;
}

    .form-label-custom .required-star {
        color: var(--error-color);
        margin-right: 3px;
    }

.input-icon-wrapper {
    position: relative;
}

    .input-icon-wrapper i.field-icon {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--secondary-color);
        font-size: 14px;
        z-index: 2;
    }

.form-control-custom {
    width: 100%;
    padding: 13px 45px 13px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 14px;
    font-family: 'Tajawal', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

    .form-control-custom::placeholder {
        color: rgba(255, 255, 255, 0.35);
    }

    .form-control-custom:focus {
        background: rgba(255, 255, 255, 0.1);
        border-color: var(--secondary-color);
        box-shadow: 0 0 0 4px rgba(0, 217, 245, 0.15);
    }

select.form-control-custom {
    appearance: none;
    cursor: pointer;
}

    select.form-control-custom option {
        background: #1a1a2e;
        color: white;
    }

.text-danger-custom {
    color: var(--error-color);
    font-size: 12.5px;
    margin-top: 5px;
    display: block;
}

.form-control-custom.input-validation-error {
    border-color: var(--error-color);
}

.toggle-password {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    font-size: 14px;
    z-index: 2;
    transition: color 0.3s ease;
}

    .toggle-password:hover {
        color: var(--secondary-color);
    }

/* ===== Buttons ===== */
.steps-buttons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    position: relative;
    z-index: 2;
}

.btn-step {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-next, .btn-submit {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 10px 25px rgba(108, 92, 231, 0.35);
    position: relative;
    overflow: hidden;
}

    .btn-next::before, .btn-submit::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.5s ease;
    }

    .btn-next:hover, .btn-submit:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(0, 217, 245, 0.45);
    }

        .btn-next:hover::before, .btn-submit:hover::before {
            left: 100%;
        }

.btn-prev {
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.2);
    color: var(--text-light);
}

    .btn-prev:hover {
        background: rgba(255,255,255,0.14);
        border-color: rgba(255,255,255,0.3);
    }

/* Login Link */
.login-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 24px;
    position: relative;
    z-index: 2;
}

.login-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    position: relative;
}

    .login-link::after {
        content: '';
        position: absolute;
        bottom: -2px;
        right: 0;
        width: 0;
        height: 2px;
        background: var(--accent-color);
        transition: width 0.3s ease;
    }

    .login-link:hover::after {
        width: 100%;
    }

/* Validation Summary */
.validation-summary-errors {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

    .validation-summary-errors ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .validation-summary-errors li {
        color: var(--error-color);
        font-size: 13px;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 3px 0;
    }

        .validation-summary-errors li::before {
            content: '\f06a';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
        }

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 480px) {
    .register-card {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .register-title {
        font-size: 22px;
    }

    .step-label {
        font-size: 11px;
    }
}

