@font-face {
    font-family: 'JetBrainsMono';
    src: url('../fonts/JetBrainsMono.ttf');
}
@font-face {
    font-family: 'CascadiaCode';
    src: url('../fonts/CascadiaCode.ttf');
}
@font-face {
    font-family: 'Sans';
    src: url('../fonts/SansMedium.ttf');
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    margin: 0;
    padding: 0;
    background: #0f0f10;
    height: 100%;
    text-align: left;
    /* overflow: hidden; */
}
BODY {
    PADDING-RIGHT: 0px;
    PADDING-LEFT: 0px;
    BACKGROUND: url("../images/bg.gif") #000 0px 0px;
    PADDING-BOTTOM: 0px;
    MARGIN: 0px;
    FONT: 12px "Trebuchet MS", tahoma, arial;
    COLOR: #FFF;
    PADDING-TOP: 0px;
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
}
.test-div{
    position: absolute;
    background-color: #010114 ;
    top: 0;
    width: 100%;
    height:2cm;
}

.byte-logo{
    position: absolute;
    background-color: #121312;
    width: 250px;
    height: 50px;
    left: 10px ;
    margin-top: 0.31cm;
    border-radius: 44px;
    box-shadow: 0 2px 10px #001aff , 0 2px 3px #ffffff;
}

.toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #e74c3c;
    color: white;
    padding: 18px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.4);
    z-index: 9999;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    font-family: "JetBrainsMono";
    gap: 15px;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(155%);
}
.toast::before {
    content: '✕';
    font-size: 28px;
    animation: shake 0.6s ease-in-out;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-10px); }
    80% { transform: translateX(10px); }
}
.toast.success {
    background: #27ae60;
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.4);
}
.toast.success::before {
    content: '✓';
    animation: none;
}



.my-img {
  position: absolute;
  background-color: #073572; /* أو background-image لو فيه صورة */
  width: 45px;   /* عرض معين */
  height: 45px;  /* نفس الارتفاع */
  left: 1.44%;
  top: 3.8%;
  color: rgb(0, 255, 149);
  font-family: "JetBrainsMono";
  object-fit: cover;
  border-radius: 50%;        /* يخليها دائرية */
  background-size: cover;    /* يخلي الصورة تملأ الدائرة */
  background-position: center; /* يوسّط الصورة */
  aspect-ratio: 41 / 1; /* النسبة 1:1 */
}

.byte-text-logo{
    position: absolute;
    color: #00ff15;
    right: 0;
    top: 15px;
    margin-right: 10px;
    font-size: 17px;
    font-family: "JetBrainsMono";
    word-spacing: -5px;
    font-weight: 1000;
}

.login-required {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #202024;
    width: 70%;
    height: 400px;
    top: 50%;
    left: 50%;
    opacity: 80%;
    transform: translate(-50%, -50%);
    box-shadow: 0 15px 15px -5px #ff0000;
    border-radius: 13px;
}

.username-input{
    position: absolute;
    display: flex;
    width: calc(100% - 50px);
    top: 150px;
    height: 55px;
    background-color: #181717;
    align-items: center;
    border-radius: 4px;
    font-weight: 1000;
    left: 25px;
    opacity: 100%;
    direction: ltr;
    
}
.username-input h1{
    font-size: 14px;
    color: #575656;
    font-weight: 800;
    border: none;
    caret-color: rgb(255, 0, 144);
    margin-left: 5px;
    font-family: "JetBrainsMono";
    user-select: none;
}

#username-plain-text{
    position:absolute;
    all: unset;
    background-color: #00000000;
    font-size: 16px;
    width: 100%;
    height: 30px;
    color: #fff;
    font-weight: 600;
    border: none;
    caret-color: rgb(255, 0, 144);
    padding: 5px 10px;
    font-family: "JetBrainsMono";
}

.password-input {
    position: absolute;
    display: flex;
    width: calc(100% - 50px);
    top: 215px;
    height: 55px;
    background-color: #181717;
    align-items: center;
    border-radius: 4px;
    font-weight: 1000;
    left: 25px;
    opacity: 100%;
    direction: ltr;
}

.password-input h1{
    font-size: 14px;
    color: #575656;
    font-weight: 800;
    border: none;
    caret-color: rgb(255, 0, 144);
    margin-left: 5px;
    font-family: "JetBrainsMono";
    user-select: none;

}

#password-plain-text {
    position: absolute;
    all: unset;
    background-color: #00000000;
    font-size: 16px;
    width: 100%;
    height: 30px;
    color: #fff;
    border: none;
    caret-color: rgb(255, 0, 144);
    padding: 5px 10px;
    font-weight: 1000;
    font-family: "JetBrainsMono";
}

.submit-user {
    position: absolute;
    display: flex;
    width: calc(100% - 50px);
    top: 285px;
    height: 60px;
    background-color: #006eff;
    align-items: center;
    border-radius: 4px;
    left: 25px;
    font-family: "JetBrainsMono";
    box-shadow: 0 0 10px #006eff, 0 0 10px #006eff;

}
@keyframes bgColorChange {
    from {
        box-shadow: #001aff;
    }
    to {
        box-shadow: 0 0 10px #ffa600, 0 0 10px #ffa600;
    }
}
.submit-user:hover {
    background-color: #ffa600;
    color: #000;
    animation: bgColorChange 0.5s forwards;
}

.submit-login{
    position: absolute;
    display: flex;
    all: unset;
    color: #ffffff;
    cursor: pointer;
    width: 100%;
    height: 45px;
    text-align: center;
    font-size: 17px;
    font-weight: 1000;
}

.submit-login:hover{
    color: #ffffff;
}

.reg-login {
    position: absolute;
    display: flex;
    all: unset;
    color: #888;
    cursor: pointer;
    width: 100%;
    height: 45px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
}

.reg-login:hover {
    color: #ffffff;
}

.login-message{
    position: absolute;
    display: flex;
    top: 55px;
    color: #15ff00;
    font-size: 21px;
    text-align: center;
    justify-content: center;
    font-family: "JetBrainsMono";
    left: 50%;
    font-weight: 1000;
    transform: translateX(-50%);
    animation: glowPulse 3s infinite ease-in-out;
}
@keyframes glowPulse {
    0% {
        text-shadow: 0 0 0px #15ff00;
    }
    50% {
        text-shadow: 0 0 30px #15ff00, 0 0 10px #15ff00;
    }
    100% {
        text-shadow: 0 0 0px #15ff00;
    }
}


.floating-text-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.floating-text {
    position: absolute;
    color: #bbff00;
    font-family: "JetBrainsMono";
    font-weight: 1000;
    font-size: 14px;
    white-space: pre;
    line-height: 1.6;
    animation: floatDown 10s linear infinite;
}

@keyframes floatDown {
    0% {
        transform: translateY(-50px);
        opacity: 0.2;
    }
    20% {
        opacity: 0.1;
    }
    80% {
        opacity: 0.05;
    }
    100% {
        transform: translateY(200vh);
        opacity: 0;
    }
}



/* for mobile normal mode */
@media (max-width: 980px) {
    .login-required {
        position: absolute;
        display: flex;
        justify-content: none;
        align-items: none;
        background-color: #202024;
        width: 97%;
        height: 430px;
    }
}

/* for pc and (mobile in landscape mode) */
@media screen and (orientation: landscape){
    .login-required {
        position: absolute;
        display: flex;
        margin-top: 40px;
        justify-content: none;
        align-items: none;
        background-color: #202024;
        width: 99%;
        height: 320px;

    }
    .login-message{
        top: 5%;
    }
    .username-input{
        top: 25%;
        height: 65px;
    }
    .password-input{
        top: 48%;
        height: 65px;
    }
    .submit-user{
        top: 74%;
        height: 60px;
    }


    .byte-text-logo {
        font-size: 17px;
        top : 15px;
        /* bottom: -11px; */
        color: #00ff15;
    }
}

/* @media (max-width: 800px) {
    .byte-logo {
        background-color: #06040c;
        width: 380px;
        height: 65px;
        bottom: 10px;
        left: 10px;
    }

    .my-img {
        width: 16%;
        height: 90%;
        left: 3px;
        top: 3px;
    }

    .byte-text-logo {
        font-size: 30px;
        bottom: -7px;
        color: rgb(43, 255, 0);
    }
} */
