/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(rgba(0, 0, 50, 0.7), rgba(0, 0, 50, 0.7)), url('bg_gabaylaro.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* Login container with image + form side-by-side */
.login-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
    
}

.login-image {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 30px;
    text-align: center;
}

.login-image img {
  max-width: 80%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}


.login-image h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    color: #dab944;
}

.login-form-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdfdfd;
    padding: 40px;
}

/* Form Box */
.form-box {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    background: #fdfdfd;
    display: flex;
    flex-direction: column;
    padding: 35px 35px;
    border-radius: 20px;

}

.form-box header {
    font-size: 40px;
    font-weight: 600;
    text-align: center;
    color: rgb(54, 65, 127);
}

.form-box hr {
    background-color: rgb(54, 65, 127);
    height: 5px;
    width: 20%;
    border: none;
    margin: 5px auto;
    outline: 0;
    border-radius: 5px;
}

/* Inputs */
.input-container {
    display: flex;
    width: 100%;
    margin-bottom: 15px;
}

.icon {
    padding: 15px;
    background: transparent;
    color: #555;
    background-color: #f1f1f1;
    min-width: 50px;
    text-align: center;
    cursor: pointer;
}

.input-field {
    width: 100%;
    padding: 10px;
    height: 50px;
    outline: none;
    border: none;
    font-size: 15px;
    background-color: #f1f1f1;
}

/* Dropdown fix */
.input-container select {
    background: rgb(255, 255, 255);
    color: rgb(54, 65, 127);
    border: 1px solid rgb(54, 65, 127);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23fff" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 15px;
}

/* Remember + forgot password */
.remember {
    display: flex;
    font-size: 15px;
    margin-bottom: 50px;
    margin-top: 20px;
}

.remember .check {
    margin-right: 5px;
}

.remember span {
    margin-left: auto;
}

.remember span a {
    text-decoration: none;
    color: rgb(54, 65, 127);
}

.remember span a:hover {
    color: rgb(54, 65, 127);
}

/* Button */
.btn {
    height: 45px;
    width: 100%;
    background-color: rgb(54, 65, 127);
    border: 0;
    border-radius: 5px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0 15px;
    margin-top: 15px;
}

.btn:hover {
    opacity: 0.7;
}

/* Extra links */
.links {
    margin: 25px;
    text-align: center;
}

.links a {
    text-decoration: none;
    color: rgb(54, 65, 127);
}

.links a:hover {
    color: rgb(54, 65, 127);
}

/* Message */
.message {
    text-align: left;
    padding: 15px 0px;
    color: rebeccapurple;
}

/* Navbar + homepage */
.nav {
    background-color: #fff;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    line-height: 60px;
    z-index: 100;
}

.logo {
    font-size: 25px;
    font-weight: 900;
}

.logo a {
    text-decoration: none;
    color: #000;
}

.right-links a {
    padding: 0 10px;
}

main {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
}

.main-box {
    display: flex;
    flex-direction: column;
    width: 70%;
}

.main-box .top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.bottom {
    width: 100%;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
    }

    .login-image,
    .login-form-area {
        flex: unset;
        width: 100%;
        height: auto;
    }

    .login-form-area {
        padding: 20px;
    }

    .form-box {
        width: 100%;
        max-width: 400px;
    }
}
    .login-form-area {
        width: 100%;
        height: 100vh; /* full height */
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        background-image: url('css/bg_gabaylaro.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        padding: 20px;
    }

@media only screen and (max-width: 840px) {
    .main-box .top {
        flex-direction: column;
    }

    .top .box {
        margin: 10px 10px;
    }

    .bottom {
        margin-top: 0;
    }
}@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
    }

    .login-image {
        display: none !important;
    }

    .login-form-area {
        width: 100%;
        height: 100vh; /* full height */
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        background-image: url('bg_gabaylaro.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        padding: 20px;
    }

    .login-form-area::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.4); /* dark overlay */
        z-index: 0;
    }

    .form-box {
        width: 100%;
        max-width: 400px;
        background-color: rgba(255, 255, 255, 0.95);
        padding: 30px;
        border-radius: 10px;
        position: relative;
        z-index: 1;
    }
}

/* Default desktop size */
.site-title {
  font-size: 50px;
  margin: 0; /* optional: remove default h1 margin */
}

/* Tablet */
@media (max-width: 768px) {
  .site-title {
    font-size: 36px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .site-title {
    font-size: 36px;
  }
}
