 body {
        background-color: #131313;
        font-family: Arial, sans-serif;
        color: #fff;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 110vh;
    }

.form-container {
      width: 500px;
        max-width: 1300px;
      /*  max-width: 540px;*/
        margin: 80px auto;
        padding: 20px;
}

.logo-section {
    text-align: center;
    margin-bottom: 24px;
}

.logo-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.logo-img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
}

.logo-fallback {
    width: 64px;
    height: 64px;
    background-color: #c1ff72;
    border-radius: 16px;
    color: #333;
    font-weight: bold;
    font-size: 18px;
    align-items: center;
    justify-content: center;
    display: none;
    display: flex; /* Ensures fallback centers content */
}

.app-title {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    margin-top: 8px;
}



.form-card {
    background-color: black;
        border: 1px solid #1f2937;
        border-radius: 24px;
        padding: 32px;
        color: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.4);
         width: 500px;
        max-width: 1200px; 
}

.form-header {
    text-align: left;
    margin-bottom: 20px;
}

.form-header h2 {
    font-size: 20px;
    font-weight: bold;
}

.form-error {
    background-color: rgba(255, 0, 0, 0.2);
    color: #ff4d4f;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    color: #ccc;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #444;
    border-radius: 10px;
    background:  #1f2937;
    color: white;
    outline: none;
}

.form-group input::placeholder {
    color: #999;
}

.form-group input:focus {
    border-color: #c1ff72;
    box-shadow: 0 0 0 1px #c1ff72;
}

.input-error {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 5px;
}

.submit-button {
    width: 100%;
    background: #1f2937;
     color: #999;
    font-weight: bold;
    padding: 12px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-button:hover {
    background: #c1ff72;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
}

.form-footer a {
    color: #ccc;
    font-size: 14px;
    display: block;
    margin: 4px 0;
    text-decoration: none;
}

.form-footer a:hover {
    color: #c1ff72;
}



    .login-card {
        background-color: black;
        border: 1px solid #1f2937;
        border-radius: 24px;
        padding: 32px;
        color: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.4);
         width: 500px;
        max-width: 1200px; 
        

    }

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 24px;
}

.logo-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.logo-img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
}

.fallback-logo {
    width: 64px;
    height: 64px;
    background-color: #c1ff72;
    border-radius: 16px;
    color: #333;
    font-weight: bold;
    font-size: 18px;
    align-items: center;
    justify-content: center;
    display: none;
    display: flex; /* Ensures fallback centers content */
}

.app-title {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    margin-top: 8px;
}




.fallback-text {
    color: #1f1f1f;
    font-weight: bold;
    font-size: 18px;
}


/* Card */


/* Typography */
.form-title {
    text-align: left;
    font-size: 20px;
    color: white;
    margin-bottom: 24px;
}
.form-label {
    color: white;
    margin-bottom: 6px;
    display: block;
}
.hint {
    font-size: 12px;
    color: #aaa;
    margin-top: 4px;
}
.error {
    color: #ff4d4f;
    font-size: 13px;
    margin-top: 4px;
}


/* Form Elements */
.form {
    display: flex;
    flex-direction: column;
  /* gap: 24px;*/
}
.form-group {
    display: flex;
    flex-direction: column;
     
}
.inline-input-group {
    display: flex;
   gap: 10px;
}
.input .select {
    width: 35%;
}
.input-phone {
    width: 100%;
    
}

.input-password {
    width: 100%;
}


.input {
    padding: 10px 14px;
     background-color: #1f2937;
    border: 1px solid #1f2937;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    
}
.input:focus {
    border-color:  #c1ff72;
    outline: none;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background-color:  #1f2937;
    color: #999;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.btn-submit:hover {
    background-color:  #2c3a56;
}

/* Footer Link */
.form-footer {
    text-align: center;
    margin-top: 12px;
}
.switch-method {
    color:  #c1ff72;
    font-size: 14px;
    text-decoration: none;
}
.switch-method:hover {
    text-decoration: underline;
}


  

   

    .card {
        background-color: black;
        border: 1px solid #1f2937;
        border-radius: 24px;
        padding: 32px;
        color: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.4);
         width: 500px;
        max-width: 1200px; 
        

    }

    .card h2  {
        text-align:left;
        font-size: 20px;
        margin-bottom: 24px;
    }

    .card .back-btn{
       text-align:left; 
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        display: block;
        font-size: 14px;
        margin-bottom: 6px;
        color: #ccc;
    }

    .form-group input {
        width: 100%;
        padding: 12px;
        background-color: #1f2937;
        border: 1px solid #1f2937;
        border-radius: 12px;
        color: #fff;
        font-size: 14px;
    }

    .form-group input:focus {
        border-color: #c1ff72;
        outline: none;
      /*  box-shadow: 0 0 0 2px #c1ff72;*/
    }

    .error-message {
        color: #ff6b6b;
        font-size: 13px;
        margin-top: 6px;
    }

    .password-strength {
        height: 6px;
        background-color: #333;
        border-radius: 4px;
        overflow: hidden;
        margin-top: 6px;
        margin-bottom: 16px;
    }

    .strength-meter {
        height: 100%;
        width: 0%;
        transition: width 0.3s ease;
    }




















    .submit-button {
        width: 100%;
        background-color: #1f2937;
        color: #999;
        font-weight: bold;
        padding: 12px;
        border: none;
        border-radius: 12px;
        cursor: pointer;
        font-size: 15px;
    }

    .submit-button:hover {
        background-color: #2c3a56;
    }

    .footer {
        text-align: center;
        margin-top: 24px;
        font-size: 14px;
        color: #ccc;
    }

    .footer a {
        color: #c1ff72;
        text-decoration: none;
    }

    .footer a:hover {
        text-decoration: underline;
    }



       
    .card {
        background-color: black;
        border: 1px solid #1f2937;
        border-radius: 24px;
        padding: 32px;
        color: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.4);
         width: 500px;
        max-width: 1200px; 
        

    }

    




    .app-title {
        font-size: 24px;
        font-weight: bold;
        color: #fff;
        margin-top: 10px;
    }

    h2 {
        text-align: left;
        font-size: 20px;
        margin-bottom: 24px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        display: block;
        font-size: 14px;
        margin-bottom: 6px;
        color: #ccc;
    }

    .form-group input,
    .form-group select {
        width: 100%;
        padding: 12px;
        background-color: #1f2937;
        border: 1px solid #1f2937;
        border-radius: 12px;
        color: #fff;
        font-size: 14px;
    }

    .form-group input:focus,
    .form-group select:focus {
        border-color: #c1ff72;
        outline: none;
    }

    .error-message {
        color: #ff6b6b;
        font-size: 13px;
        margin-top: 6px;
    }

    .password-strength {
        height: 6px;
        background-color: #333;
        border-radius: 4px;
        overflow: hidden;
        margin-top: 6px;
        margin-bottom: 16px;
    }

    .strength-meter {
        height: 100%;
        width: 0%;
        transition: width 0.3s ease;
    }

    .submit-button {
        width: 100%;
        background-color: #1f2937;
         color: #999;
        font-weight: bold;
        padding: 12px;
        border: none;
        border-radius: 12px;
        cursor: pointer;
        font-size: 15px;
    }

    .submit-button:hover {
        background-color: #2c3a56;
    }

    .footer {
        text-align: center;
        margin-top: 24px;
        font-size: 14px;
        color: #ccc;
    }

    .footer a {
        color: #c1ff72;
        text-decoration: none;
    }

    .footer a:hover {
        text-decoration: underline;
    }


    .hint {
        font-size: 12px;
        color: #888;
        margin-top: 6px;
        
    }

    select {
        width: 100%;
    }


        .container {
         width: 500px;
        max-width: 1300px;
      /*  max-width: 540px;*/
        margin: 80px auto;
        padding: 20px;
    }





.app-title {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    margin-top: 8px;
}

  


.app-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.login-box {

    backdrop-filter: blur(8px);
        background-color: black;
        border: 1px solid #1f2937;
        border-radius: 24px;
        padding: 32px;
        color: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.4);
         width: 500px;
        max-width: 1200px; 
}

.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-header h2 {
    font-size: 20px;
    margin-bottom: 6px;
}

.login-header p {
    font-size: 14px;
    color: #b0b0b0;
}

.button-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.button-list button {
    padding: 12px;
    background: #1f2937;
    color: #fff;
    border: 1px solid #333;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.button-list button:hover {
    background:  #2c3a56;
    border-color:  #c1ff72;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #bbb;
}

.login-footer a {
    color:  #c1ff72;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}























































    


    .card {
        background-color: black;
        border: 1px solid #1f2937;
        border-radius: 24px;
        padding: 32px;
        color: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.4);
         width: 500px;
        max-width: 1200px; 
        

    }

    

.app-title {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    margin-top: 8px;
}


   

    .back-btn {
        text-align: left;
        margin-bottom: 20px;
        display: block;
        color: #aaa;
        font-size: 14px;
        cursor: pointer;
        background: none;
    
      

    }
    .back-btn:hover {
        text-decoration: underline;
    }

    .card h2 {
        text-align: left;
        font-size: 20px;
        margin-bottom: 24px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        display: block;
        font-size: 14px;
        margin-bottom: 6px;
        color: #ccc;
    }

    .form-group input[type="text"],
    .form-group input[type="password"] {
        width: 100%;
        padding: 12px;
        background-color: #1f2937;
        border: 1px solid #1f2937;
        border-radius: 12px;
        color: #fff;
        font-size: 14px;
    }

    .form-group input:focus {
        border-color: #c1ff72;
        outline: none;
    }

    .input-with-prefix {
        display: flex;
        align-items: center;
        background-color: #1f2937;
        border: 1px solid #1f2937;
        border-radius: 12px;
        overflow: hidden;
    }

    .input-with-prefix span {
        padding: 0 12px;
        color: #999;
        white-space: nowrap;
    }

    .input-with-prefix input {
        flex: 1;
        padding: 12px;
        border: none;
        background-color: transparent;
        color: #fff;
        font-size: 14px;
    }

    .input-with-prefix input:focus {
        outline: none;
    }

    .error-message {
        color: #ff6b6b;
        font-size: 13px;
        margin-top: 6px;
    }

    .submit-button {
        width: 100%;
        background-color:  #1f2937;
        color:  #999;
        font-weight: bold;
        padding: 12px;
        border: none;
        border-radius: 12px;
        cursor: pointer;
        font-size: 15px;
        margin-top: 10px;
    }

    .submit-button:hover {
        background-color: #2c3a56;
    }

    .alt-links {
        text-align: center;
        margin-top: 16px;
    }

    .alt-links a {
        color: #c1ff72;
        font-size: 14px;
        text-decoration: none;
        display: block;
        margin-bottom: 6px;
    }

    .alt-links a:hover {
        text-decoration: underline;
    }




           /* الخلفية */
        #loadingScreen {
            position: fixed;
            inset: 0;
             background-color: #131313;
        font-family: Arial, sans-serif; /* bg-gray-900 */
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* الحاوية */
        .loading-container {
            text-align: center;
            color: #d1d5db; /* text-gray-400 */
        }

        /* عنوان NVIT */
        .loading-title {
            font-size: 3.75rem; /* text-6xl */
            font-weight: bold;
            color: #c1ff72; /* green-500 */
            margin-bottom: 1rem;
            animation: pulse 1.5s infinite;
        }

        /* النص تحت العنوان */
        .loading-subtitle {
            font-size: 1.125rem; /* text-lg */
            margin-bottom: 2rem;
        }

        /* نقاط التحميل */
        .loading-dots {
            display: flex;
            justify-content: center;
            gap: 0.5rem;
            margin-bottom: 2rem;
        }

        .loading-dots div {
            width: 0.75rem;
            height: 0.75rem;
            background-color: #c1ff72;
            border-radius: 50%;
            animation: bounce 0.6s infinite alternate;
        }

        .loading-dots div:nth-child(2) {
            animation-delay: 0.15s;
        }

        .loading-dots div:nth-child(3) {
            animation-delay: 0.3s;
        }

        /* شريط التقدم */
        .progress-bar-container {
            width: 20rem;
            background-color: #1f2937; /* gray-800 */
            border-radius: 999px;
            height: 0.5rem;
            overflow: hidden;
            margin: 0 auto 1rem auto;
        }

        .progress-bar {
            background-color:#c1ff72;
            height: 100%;
            width: 0%;
            border-radius: 999px;
            transition: width 0.3s ease-in-out;
        }

        /* النص السفلي */
        .loading-text {
            font-size: 0.875rem; /* text-sm */
            color: #9ca3af; /* gray-400 */
        }

        /* الحركات */
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        @keyframes bounce {
            0% { transform: translateY(0); }
            100% { transform: translateY(-5px); }
        }


        .logo-section {
    text-align: center;
    margin-bottom: 24px;
    margin-left:10px;
}

.logo-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.logo-img {
    width: 64px;
    height: 64px;
    border-radius: 16px;

    object-fit: cover;
}

.logo-fallback {
    width: 64px;
    height: 64px;
    background-color: #c1ff72;
    border-radius: 16px;
    color: #333;
    font-weight: bold;
    font-size: 18px;
    align-items: center;
    justify-content: center;
    display: none;
    display: flex; /* Ensures fallback centers content */
}
   

    .app-title {
        font-size: 24px;
        font-weight: bold;
        color: #fff;
        margin-top: 10px;
    }



    .card {
        background-color: black;
        border: 1px solid #1f2937;
        border-radius: 24px;
        padding: 32px;
        color: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.4);
         width: 500px;
        max-width: 1200px; 
        text-align:center;
        

    }

    .card h2 {
        font-size: 20px;
        font-weight: 600;
        margin-bottom: 12px;
    }


    .card p {
        font-size: 14px;
        color: #ccc;
        line-height: 1.6;
        margin-bottom: 16px;
    }

    .card p.small-note {
        font-size: 12px;
        color: #aaa;
        margin-bottom: 16px;
    }

    .card a {
        color: #c1ff72;
        text-decoration: underline;
        font-weight: 500;
    }

    .input-wrapper {
        margin-bottom: 20px;
    }

    .input-field {
        width: 100%;
        padding: 12px 16px;
        border-radius: 12px;
        background-color: rgba(31, 41, 55, 0.8);
        border: 1px solid #3a3a3a;
        color: white;
        font-size: 14px;
    }

    .input-field::placeholder {
        color: #888;
    }

    .input-field:focus {
        border-color: #c1ff72;
        outline: none;
        box-shadow: 0 0 0 2px rgba(193, 255, 114, 0.5);
    }

    .btn {
        width: 100%;
        padding: 12px;
        background-color: #c1ff72;
        border: none;
        border-radius: 12px;
        font-weight: bold;
        color: #1f1f1f;
        font-size: 16px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .btn:hover {
        background-color: #b7f264;
    }

    .footer {
        margin-top: 16px;
        font-size: 13px;
        color: #999;
    }

    .footer button {
        background: none;
        border: none;
        color: #c1ff72;
        font-weight: 500;
        cursor: pointer;
        text-decoration: underline;
        padding: 0;
    }

    .text-danger {
        color: #f44336;
        font-size: 0.85rem;
        margin-top: 5px;
    }


        .registration-container {
        width: 500px;
        max-width: 1300px; /* أعرض من السابق */
        padding: 20px;
        box-sizing: border-box;
    }

    .logo-section {
        text-align: center;
        margin-bottom: 32px;
        margin-left:50px;
    }

    .logo-wrapper {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 16px;
      
    }

    .logo-img {
        width: 64px;
        height: 64px;
        border-radius: 16px;
        object-fit: cover;
    }

    .logo-fallback {
        width: 64px;
        height: 64px;
        background-color: #c1ff72;
        border-radius: 16px;
        color: #333;
        font-weight: bold;
        font-size: 18px;
        align-items: center;
        justify-content: center;
        display: none;
    }

    .app-title {
        font-size: 24px;
        font-weight: bold;
        margin: 0;
        color: #fff;
    }

    .registration-card {
        background-color: black;
        border: 1px solid #1f2937;
        border-radius: 24px;
        padding: 40px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.5);
        width: 500px;
        max-width: 1200px; /* جعل البطاقة نفسها أوسع */
        margin: 0 auto;
    }

    .registration-header {
        text-align: center;
        margin-bottom: 24px;
    }

    .registration-header h2 {
        font-size: 26px;
        margin-bottom: 8px;
        color: #c1ff72;
    }

    .registration-header p {
        color: #ccc;
        font-size: 16px;
        margin: 0;
    }

    .registration-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
    }

    .registration-buttons button {
        background-color:  #1f2937;
        color: #fff;
        border: 1px solid #444;
        border-radius: 12px;
        padding: 16px;
        cursor: pointer;
        font-size: 16px;
        transition: all 0.3s ease;
    }

    .registration-buttons button:hover {
        background-color: #2c3a56;
        border-color: #c1ff72;
    }

    .registration-footer {
        text-align: center;
        font-size: 14px;
        color: #bbb;
    }

    .registration-footer a {
        color: #c1ff72;
        text-decoration: none;
    }

    .registration-footer a:hover {
        text-decoration: underline;
    }








@media (max-width: 600px) {
    body {
        padding: 16px;
        align-items: flex-start;
        min-height: 100vh;
    }
    
    .form-container {
        margin: 20px auto;
        width: 100%;
        max-width: 450px;
        padding: 0 12px;
    }
    
    .registration-card,
    .form-card,
    .card,
    .login-box {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }
    
    .form-card {
        padding: 24px;
        border-radius: 20px;
    }
    
    .form-header h2 {
        font-size: 18px;
    }
    
    .form-group input {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    .submit-button {
        padding: 16px;
        font-size: 16px; 
    }
}


@media (max-width: 400px) {
    .card, 
    .login-box,
    .form-card {
        padding: 20px;
        width: 100%;
    }
    
    .logo-img, 
    .logo-fallback {
        width: 56px;
        height: 56px;
    }
    
    .app-title {
        font-size: 18px;
    }
    
    h2 {
        font-size: 17px;
    }
    
    .registration-card {
        width: 100%;
    }
}


@media (max-width: 320px) {
    .card, 
    .login-box,
    .form-card {
        padding: 16px;
        border-radius: 16px;
        width: 100%;
    }
    
    .form-group input,
    .form-group select {
        padding: 14px;
        font-size: 15px;
    }
    
    .registration-card {
        width: 100%;
    }
}


@media (max-width: 600px) {
 
    button, 
    .submit-button, 
    .btn {
        min-height: 44px; 
    }
    

    html, body {
        overflow-x: hidden;
        width: 100%;
    }
    
   
    .form-group {
        margin-bottom: 16px;
    }
    
 
    body {
        font-size: 16px;
        line-height: 1.5;
    }
    
  
    .form-container > * {
        margin-bottom: 20px;
    }
}


@media (max-width: 600px) and (orientation: landscape) {
    body {
        padding: 12px;
    }
    
    .form-container {
        margin: 12px auto;
    }
    
    .form-card {
        padding: 18px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
}


@media (max-width: 600px) and (-webkit-min-device-pixel-ratio: 2) {
    .submit-button {
        font-weight: 600; 
    }



      
}












