html{
    font-size: 62.5%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Outfit", sans-serif;
}
#nav_1{
    height: 7rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.3s ease;
}

#nav_1.scrolled{
    background: rgba(5,10,25,0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.logo{
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo:hover{
    color: inherit;
}

.logo img{
    padding: 1rem 0;
    padding-left: 1rem;
    height: 7rem;
    width: auto;
}
.link_1 a {
    font-size: 1.5rem;
    font-weight: 500;
    color: white;
    margin: 0 1.5rem;
    position: relative;
    text-decoration: none;
    transition: 0.3s;
}

.link_1 > a::after{
    content:"";
    position:absolute;
    left:50%;
    bottom:-0.8rem;
    width:0;
    height:3px;
    background: linear-gradient(90deg, #2563EB, #38BDF8);
    transform:translateX(-50%);
    transition:0.5s ease;
    border-radius:5px;
}
.link_1 a:hover::after, .link_1 a.active::after{
    width:100%;
}

.logo_text{
    margin-left: 0.75rem;
    font-size: 2.15rem;
    font-weight: 500;
    color: white;
}

.link_1{
    display: flex;
    align-items: center;
}
body{
    display: flex;
    margin: 0;
    padding: 0;
    background:
      linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
      url("/images/sec_1.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    justify-content: center;
    align-items: center;
    min-height: 100dvh;
    overflow-x: hidden;
}
#loginForm{
    max-width: 50rem;     
    width: 100%;
    display: flex;
    align-items: center;
}
.main{
    max-width: 50rem;     
    width: 100%;
    padding: 3rem;
    background: rgba(5,10,25,0.95);
    backdrop-filter: blur(1rem);
    border-radius: 1rem;
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.5);
    color: white;
    margin: 0 auto;       
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: center;
}
.head{
    width: 100%;
    margin: 2rem;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    position: relative;
}
.title{
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.credits{
    width: 50%;
    position:relative;
    display: flex;
    flex-direction: column;
    align-self: flex-start;
}
.ps, .userId{
    border-radius: 2rem;
    font-size: 1.5rem;
    font-family: 'WorkSans', system-ui, sans-serif;
    width: 100%;
    border: 2px solid #090e42;
    padding: 0.25rem 1rem;
    background: rgba(5,10,25,0.95);
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.5);
    color: #fff;
    color-scheme: dark;
}
.id{
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap:1rem;
}
.pass{
    position: relative;
    display: flex;
    flex-direction: column;
    gap:1rem;
    margin-bottom: 2.5rem;
}
.ps{
    padding-right: 4.5rem;
}
.id, .pass, .btn{
    font-size: 1.5rem;
    font-weight: 500;
}
#togglePassword{
    position: absolute;
    top: 75%;
    right: 1.5rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
#togglePassword svg{
    width:18px;
    height:18px;
    color: #fff;
}
.btn{
    border-radius: 1.5rem;
    color: #fff;
    background-color: #2563EB;
    width: 10rem;
    padding: 0.5rem 1.5rem;
    border: none;
    transition: all 0.3s ease;
}
.btn:hover{
    background: #0e177a;
}
.btn {
    border-radius: 1.5rem;
    color: #fff;
    background-color: #2563EB;
    width: 12.5rem;
    padding: 0.5rem 1.5rem;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn:hover {
    background: #0e177a;
}
.btn:disabled {
    background-color: #0e177a;
    cursor: not-allowed;
    opacity: 0.8;
}
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.ps:focus, .userId:focus{
    outline: none;
}
select:focus {
    outline: none;
}
@media (max-width: 768px) {
    html {
        font-size: 56%; 
    }
    body {
        padding: 2rem;
    }
    #loginForm{
        padding: 2rem;
        max-width: 100%;
    }
    .main {
        padding: 2rem;
        max-width: 100%;
    }
    .head {
        margin: 1rem 0;
        gap: 0.8rem;
        display: flex;
        flex-direction: row;
        align-items: center;
    }
    .title {
        text-align: center;
        font-size: 2.4rem;
    }
    .credits {
        width: 100%;
    }
    .pass{
        display: flex;
        flex-direction: column;
    }
    #togglePassword {
        margin-top: 0.25rem;
        align-items:center;
    }
    .ps, .userId {
        width: 100%;
        margin-top: 1rem;        
    }
    .btn {
       width: 40%;        
    }
}