@charset "utf-8";

@import url("reset.css");

html, body {
    height: 100%;
}


body {
    background: #f9f9f9 url('https://iportal2.ntnu.edu.tw/ntnu/img/bg1.png') no-repeat top center;
    min-height: 100vh;
    font-family: '微軟正黑體', Arial, sans-serif;
}

.container-fluid{
  padding-right: 0;
  padding-left: 0;

}

.navbar {
  width: 100%; 
  margin: 0;
  padding: 0;
  min-width: 100%; 
  box-sizing: border-box; 
  font-weight: 900;
}

.navbar-brand {
  margin-left: 4px;
  display: flex;
  align-items: center;

}

.logo-container {
    display: flex;
    flex-direction: row; 
    align-items: center;
}

#navlogo {
    margin-left: 16px;
    width: 15vw; 
    max-width: 200px; 
    min-width: 80px; 
    height: auto; 

}

#itclogo {
    width: 45vw; 
    max-width: 400px; 
    min-width: 120px; 
    height: auto;
    margin-left: 16px;
    border-left: 1px solid #FFFFFF;
    padding-left: 16px;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.content-wrapper {
    display: flex;
    flex-wrap: row;
    gap: 20px;
    margin-bottom: 30px;
}


.announcement-section {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
}


.login-section {
    flex: 1;
    min-width: 300px;
    order: 2;
}

.login-container {
    background: rgba(255, 255, 255, .5);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
}


.lang-switch {
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.lang-switch span {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #e8eef7;
    color: #000;
    cursor: pointer;
    margin-left: 0.5rem;
    border-radius: 4px;
}

.lang-switch span:hover,
.lang-switch .click {
    background: #3060E3;
    color: #fff;
}


.login-form {
    max-width: 100%;
    margin: 0 auto;
}

.form-label {
    font-family: '微軟正黑體', Arial, sans-serif;
/*    background: #555555;*/
    color: #000000;
    padding: 4px 8px;
    margin-bottom: 0.5rem;
    display: inline-block;
    border-radius: 4px;
    font-weight: 900;
}

.form-control {
    height: 40px;
    border: 1px solid #999;
}


.btn-primary {
    background: #5c8ec9;
    border: none;
    padding: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #4a7ab3;
}


.banner-text {
    font-size: 0.9rem;
    line-height: 1.6;
}

.banner-text p {
    margin-bottom: 1rem;
    color: #333;
}


.features-section {
    margin-top: 30px;
}


a {
    color: #5c8ec9;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #4a7ab3;
    text-decoration: underline;
}

#bottomUrl {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}



#footerend {
    color: #ffffff;
    background-color: #4d070b;
}

#itcUrl {
    color: #ffffff;
    text-decoration: none;
}

#itcUrl:hover {
    color: #ffffff;
    text-decoration: underline;
}

#emailImg, #forgetImg, #initImg {
    box-shadow: 4px 4px 20px 4px rgba(191, 191, 191, .2);
    border-radius: 16px;
}

#ldapImg {
    width: 100%;
    border-radius: 16px;
    box-shadow: 4px 4px 20px 4px rgba(191, 191, 191, .1);
}

#portalTiitle {
    font-weight: 800;
    font-size: 20px;
}




@media only screen and (max-width: 768px)  {
    .content-wrapper {
        flex-direction: column;
    }

    .login-container {
        margin: 1rem auto;
        padding: 1.5rem;
    }

    .banner-text {
        margin-bottom: 2rem;
    }

    /* #navlogo, #itclogo {
        height: 36px;
    }*/
}

@media only screen and (max-width: 576px)  {
    .main-content {
        padding: 10px;
    }

    .login-container {
        padding: 1rem;
    }

    .lang-switch span {
        padding: 0.3rem 0.8rem;
        font-size: 0.9rem;
    }

    .banner-text {
        font-size: 0.85rem;
    }


    .logo-container {
        flex-direction: column; 
        align-items: flex-start; 
    }

    #navlogo {
        margin-left: 8px;
        margin-bottom: 4px;
        width: 40vw; 
        min-width: 60px; 
    }

    #itclogo {
        margin-left: 8px;
        border-left: none;
        padding-left: 0;
        width: 60vw;
        min-width: 100px;
    }

}

@media only screen and (max-width: 414px) {
    .content-wrapper {
        display: flex;
        flex-direction: column;
    }

    .order-md-1 {
        order: 1;
    }
    .order-md-2 {
        order: 2;
    }
    

    .navbar-brand {
        font-size: 12px;
    }

    img#ntnulogoCenter {
        margin-top: 32px;
    }

    #bottomUrl {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 12px;
    }

}

