@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap');

* {
    font-family: lexend;
    font-size: 22px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    height: 100vh;
    background: #ffffff;
    margin: 0;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    min-height: 100vh;
}

.container-1, .container-3 {
    height: 100%;
}

/* Left Content */
.container-1 {
    flex: 1;
    padding: 20px;
}

/* Borders */
.black-border, .gold-border, .red-border {
    width: 10px;
}

.black-border {
    background: #363533;
}

.gold-border {
    background: #EDBA2E;
}

.red-border {
    background: #A01C2D;
    margin-right: 20px;
}

/* Right Content (Fix Centering of Image) */
.container-3 {
    flex: 1;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: -20px;
}

/* Ensure Center of the Image is Always Visible */
.main-bldg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Logo */
.cics-logo {
    width: 120px;
    height: 140px;
    margin-top: 20px;
}

/* Headings and Text */
.welcome {
    font-weight: bold;
    font-size: 55px;
    margin-top: 21px;
}

.description {
    color: #545555;
    margin-bottom: 5px;
}

.access {
    margin-top: 134px;
    margin-bottom: 13px;
}

/* Google Login Box with Smooth Hover */
.google-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 400px;
    height: 80px;
    border-radius: 8px;
    border: 1px solid #363533;
    background: #363533;
    margin-left: 0;
    cursor: pointer;
    
    /* Smooth transition for background and border */
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

/* Hover Effect */
.google-box:hover {
    background-color: #505050; /* Slightly lighter background */
    border-color: #EDBA2E; /* Change border to gold */
    transform: scale(1.05); /* Slightly increase size */
}

/* Click (Active) Effect */
.google-box:active {
    background-color: #333333; /* Darker background */
    transform: scale(0.98); /* Slightly shrink on click */
}

/* Google Logo Animation */
.google-logo {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    transition: transform 0.3s ease; /* Smooth rotation effect */
}

/* Rotate Logo on Hover */
.google-box:hover .google-logo {
    transform: rotate(360deg);
}

.google-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #FFF;
    width: 100%;
    height: 100%;
}

.continue {
    font-size: 28px;
    font-weight: 400;
}

/* Line Divider */
.line {
    width: 400px;
    height: 3px;
    border: none;
    border-top: 2px solid #DCDCDB;
    margin-top: 30px;
    margin-left: 0;
}

/* Account Details */
.no-account-container {
    margin-top: 10px;
    color: rgba(0, 0, 0, 0.66);
    line-height: 1.5;
}

/* Keep Bullet Points on Large Screens */
.account-options {
    list-style-type: disc;
    padding-left: 20px;
}

.account-options li {
    margin-bottom: 10px;
}

.account-options a {
    text-decoration: underline;
    color: black;
    font-weight: 400;
}

.account-options span {
    display: block;
    margin-top: 5px;
    color: black;
}

/* Loading Spinner Styling */
#loading-spinner {
    display: none; /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* When visible, use flex layout */
#loading-spinner.active {
    display: flex;
}

.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Large Desktop Screens (1440px and up) */
@media (min-width: 1440px) {
    * {
        font-size: 24px;
    }
    
    .container-1 {
        padding: 40px;
        max-width: 50%;
    }
    
    .welcome {
        font-size: 65px;
    }
    
    .description {
        font-size: 26px;
    }
    
    .cics-logo {
        width: 140px;
        height: 160px;
    }
    
    .google-box {
        width: 450px;
        height: 90px;
    }
    
    .continue {
        font-size: 32px;
    }
    
    .line {
        width: 450px;
    }
    
    .black-border, .gold-border, .red-border {
        width: 12px;
    }
}

/* Medium-Large Laptops and Desktops (1200px to 1439px) */
@media (min-width: 1200px) and (max-width: 1439px) {
    .container-1 {
        padding: 30px;
    }
    
    .welcome {
        font-size: 58px;
    }
    
    .description {
        font-size: 24px;
    }
    
    .google-box {
        width: 420px;
    }
    
    .line {
        width: 420px;
    }
}

/* Standard Laptops and Small Desktops (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    * {
        font-size: 20px;
    }
    
    .container-1 {
        padding: 25px;
    }
    
    .welcome {
        font-size: 48px;
    }
    
    .cics-logo {
        width: 110px;
        height: 130px;
    }
    
    .access {
        margin-top: 100px;
    }
    
    .google-box {
        width: 380px;
        height: 70px;
    }
    
    .continue {
        font-size: 26px;
    }
    
    .line {
        width: 380px;
    }
}

/* Hide Main Building Image on Tablets & Mobile */
@media (max-width: 1024px) {
    .container-3 {
        display: none;
    }
    
    /* Remove Bullet Points on Tablet & Mobile Screens */
    .account-options {
        list-style-type: none;
        padding-left: 0;
    }
    
    /* Tablet Adjustments */
    .main-container {
        flex-direction: column;
        align-items: center;
        height: auto;
    }

    .container-1 {
        width: 100%;
        text-align: center;
        padding: 20px;
    }

    .black-border, .gold-border, .red-border {
        display: none;
    }

    /* Center Google Button and Line */
    .google-box, .line {
        margin: 20px auto;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 80%;
        max-width: 400px;
    }

    /* Center Line on Tablet Screens */
    .line {
        width: 80%;
        margin: 30px auto;
    }
}

@media (max-width: 768px) {
    /* Mobile Adjustments */
    .main-container {
        flex-direction: column;
        align-items: center;
    }

    .container-1 {
        margin-left: 0;
        padding: 15px;
    }

    .welcome {
        font-size: 40px;
    }

    .description {
        font-size: 18px;
    }

    .google-box {
        width: 100%;
        height: 60px;
    }

    .google-logo {
        width: 40px;
        height: 40px;
    }

    .continue {
        font-size: 20px;
    }

    .line {
        width: 90%;
        margin: 30px auto;
    }
}