/* General */

html,
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(180deg, #ebe8f7 0%, #f5f4fb 100%);
    color: #1f1b3a;
    margin: 0;
    font-weight: 600;
    line-height: 1.5;
}

/* Navigation bar */

.navbar {
    height: 60px;
    width: 100%;
    background: #3E3E4B;

    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 20px;
    padding: 0 10px;
    box-sizing: border-box;
}


#first {
    justify-content: flex-start;
}

#favicon {
    width: auto;
    height: 50px;
}

#menu-button {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
}


#menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

#links-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#links-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}


.link {
    color: white;
    text-decoration: none;
    margin: 10px;
    font-size: 15px;
}


.link:hover {
    color: #D5D6E9;
    text-decoration: underline;
    text-underline-offset: 6px;
}

#current-link {
    color: #D5D6E9;
    text-decoration: underline;
    text-underline-offset: 6px;
}

@media (max-width: 900px) {

    #menu-button {
        display: block;
    }

    #menu-button:hover {
        color: #ccc2ff;
    }

    #menu {
        display: none;
        position: absolute;
        top: 60px;
        right: 0;
        width: 220px;
        background: #3E3E4B;
        flex-direction: column;
        align-items: center;
        z-index: 1000;
    }

    #links-left,
    #links-right {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .link {
        width: 80%;
        text-align: center;
    }

    #menu.active {
        display: flex;
    }
}
#login-form{
    font-size:1rem;
}

.login-container{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:40px 20px;
    box-sizing:border-box;
}

.login-card{
    width:100%;
    max-width:420px;
    background:white;
    padding:24px;
    border-radius:18px;
    box-sizing:border-box;
    box-shadow:0 15px 40px rgba(31,27,58,.15);
}

.login-card h1{
    margin:0;
    text-align:center;
    font-size:1.35rem;
}

.subtitle{
    margin:8px 0 20px;
    text-align:center;
    color:#6b6883;
    font-size:.9rem;
}

.input-group{
    display:flex;
    flex-direction:column;
    margin-bottom:14px;
}

.input-group label{
    margin-bottom:5px;
    font-size:.85rem;
}

.input-group input{
    padding:10px 12px;
    font-size:.9rem;
    border:2px solid #d9d6eb;
    border-radius:10px;
    transition:.2s;
}

.input-group input:focus{
    outline:none;
    border-color:#6355c7;
    box-shadow:0 0 0 4px rgba(125,99,255,.15);
}

.forgot-password{
    display:block;
    margin:-4px 0 14px;
    text-align:right;
    color:#6355c7;
    font-size:.8rem;
    text-decoration:none;
}

.forgot-password:hover{
    text-decoration:underline;
}

.login-button{
    width:100%;
    padding:11px;
    border:none;
    border-radius:10px;
    background:#775fef;
    color:white;
    font-size:.9rem;
    font-weight:bold;
    cursor:pointer;
    transition:.2s;
}

.login-button:hover{
    background:#6355c7;
}

.google-button{
    width:100%;
    margin-top:16px;
    padding:10px;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    border:2px solid #d9d6eb;
    border-radius:10px;
    background:white;
    font-size:.9rem;
    cursor:pointer;
    transition:.2s;
}

.google-button:hover{
    background:#f5f4fb;
}

.google-button img{
    width:18px;
    height:18px;
}

.divider{
    margin:18px 0 6px;
    display:flex;
    align-items:center;
    text-align:center;
    color:#8f8ba8;
}

.divider::before,
.divider::after{
    content:"";
    flex:1;
    height:1px;
    background:#d9d6eb;
}

.divider span{
    padding:0 16px;
}

.register-link{
    margin-top:18px;
    text-align:center;
    color:#6b6883;
    font-size:.85rem;
}

.register-link a{
    color:#6355c7;
    font-weight:bold;
    text-decoration:none;
}

.register-link a:hover{
    text-decoration:underline;
}

@media(max-width:500px){
    .login-card{
        padding:20px;
    }

    .login-card h1{
        font-size:1.25rem;
    }
}


#bottombar {
    height: 70px;
    width: 100%;
    background: #3E3E4B;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 40px;
    box-sizing: border-box;

    color: white;
}


#footer-left p {
    margin: 0;
}


#footer-socials {
    display: flex;
    gap: 20px;
}


.social-link {
    color: white;
    text-decoration: none;
}


.social-link:hover {
    color: #D5D6E9;
}

@media (max-width: 900px) {

    /* About sections */
    .larger-about-box {
        flex-direction: column;
        width: 100%;
    }

    .about {
        width: 100%;
    }

    .about-box,
    .history-box {
        width: calc(100% - 40px);
        margin: 20px auto;
        padding: 15px;
        box-sizing: border-box;
    }

    .text-box {
        padding: 15px;
    }


    /* Section headings */
    .large-text {
        margin-left: 20px;
        margin-top: 20px;
        font-size: clamp(10px, 3vw, 20px);
    }


    /* Floating images */
    .float {
        width: 100%;
        display: flex;
        justify-content: center;
        
    }

    .float-img {
        width: 45%;
        margin: 15px auto;
    }


    /* Footer */
    #bottombar {
        height: auto;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    #footer-socials {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}

@media (max-width: 900px) {

    .larger-about-box {
        flex-direction: column;
    }

    .float {
        width: 100%;
        justify-content: center;
        overflow: hidden;
    }

    .float-img {
        width: 30%;
        margin: 5px;
    }
}