/* Import Glacier Indifference Font */
@font-face {
    font-family: 'Glacier Indifference';
    src: url('../fonts/glacial-indiffernece/GlacialIndifference-Bold.otf') format('truetype'),
         url('../fonts/poppins/Poppins-Regular.ttf') format('truetype'),
         url('../fonts/poppins/Poppins-Bold.ttf') format('truetype'),
         url('../fonts/poppins/Poppins-Medium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* General Styling */
body {
    font-family: 'GlacialIndifference', 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('/images/bckgrbnd.png');
    background-size: cover;
    background-position: center;
    background-color: #003F5C;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
    opacity: 0;
    animation: fadeInBg 2s ease-in-out forwards;
}

/* Fade-in Background Animation */
@keyframes fadeInBg {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Logo Animation */
.logo-container {
    display: flex;
    align-items: center;
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    animation: moveLeft 1s ease-in-out 1.2s forwards, bounce 1.5s infinite ease-in-out 2.2s;
}

.logo-container img {
    width: 100px;
    height: auto;
}

/* Bounce Animation */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Move Left Animation */
@keyframes moveLeft {
    from { left: 50%; transform: translateX(-50%); }
    to { left: 10px; transform: translateX(0); }
}

/* Text Fade-in Animation */
.logo-text {
    font-family: 'Glacier Indifference', sans-serif;
    font-size: 20px;
    color: white;
    margin-left: 15px;
    opacity: 0;
    white-space: nowrap;
    font-weight: bold;
    animation: fadeInText 1s ease-in-out 1.2s forwards;
}

.republic-text {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: normal;
    color: white;
    text-align: left;
    display: block;
    margin-bottom: 2px;
}

.logo-text span {
    font-family: 'Poppins', sans-serif;
    font-weight: normal;
    display: block;
    font-size: 16px;
}

@keyframes fadeInText {
    from { opacity: 0; }
    to { opacity: 1; }
}

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Left Section */
.login-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    animation: fadeIn 1.5s ease-in-out;
}

.login-left h1 {
    font-size: 4rem;
    font-weight: bold;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1.5s ease-in-out forwards;
}

/* Right Section */
.login-right {
    flex: 0.4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-right: 5%;
}

/* LOGIN BOX */
.login-box {
    background-color: rgb(255, 255, 255);
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-in-out forwards;
}

.login-box h2 {
    margin-bottom: 20px;
}

/* FORM STYLING */
.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group input {
    width: 90%;
    padding: 12px;
    margin: 5px 0;
    border: 2px solid #003F5C;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    text-align: left;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

button {
    background-color: #003F5C;
    color: white;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

button:hover {
    background-color: #002B3D;
}

p {
    text-align: center;
    margin-top: 10px;
}

a {
    color: #003F5C;
    text-decoration: none;
    font-weight: bold;
}

/* Fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Fade-in from below */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
