@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=SUSE:wght@100..800&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
    --linear-grad: linear-gradient(to right, #141E30, #243B55);
    --grad-clr1: #141E30;
    --grad-clr2: #243B55;
}

body {
    height: 100vh;
    background: #f6f5f7;
    display: grid;
    place-content: center;
    font-family: 'Poppins', sans-serif;
}

header {
    width: 100%;
    background: var(--grad-clr1);
    text-align: center;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-family: 'SUSE', sans-serif;
    color: #fff;
    margin-top: 0;
}

header h1 {
    margin: 0;
    font-size: 2rem;
    text-transform: uppercase;
    line-height: 1.2;
    color: #fff;
}

.container {
    position: relative;
    width: 650px;
    height: 1200px;
    background-color: #fff;
    box-shadow: 25px 30px 55px #5557;
    border-radius: 13px;
    overflow: hidden;
    transform: scale(0.55);
    transform-origin: center;
    margin-top: 100px;
}

.form-container {
    position: absolute;
    width: 50%;
    height: 100%;
    padding: 0 40px;
    transition: all 0.6s ease-in-out;
    top: 0;
}

.sign-up-container {
    left: 100%;
    opacity: 0;
    z-index: 1;
}

.sign-in-container {
    left: 0;
    z-index: 2;
}

form {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 50px;
    width: 110%;
}

h1 {
    color: var(--grad-clr1);
    margin: 0;
    margin-bottom: 30px;
}

.infield {
    position: relative;
    margin: 15px 0;
    width: 150%;
}

input {
    width: 100%;
    padding: 14px 15px;
    background-color: #f3f3f3;
    border: none;
    outline: none;
    font-size: 25px;
}

label {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--linear-grad);
    transition: 0.3s;
}

input:focus ~ label {
    width: 100%;
}

a {
    color: #333;
    font-size: 18px;
    text-decoration: none;
    margin: 25px 0;
}

a.forgot {
    padding-bottom: 5px;
    border-bottom: 2px solid #eee;
}

button {
    border-radius: 20px;
    border: 2px solid var(--grad-clr1);
    background: var(--grad-clr2);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 15px 70px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.form-container button {
    margin-top: 15px;
    transition: 80ms ease-in;
    width: 150%;
}

.form-container button:hover {
    background: #fff;
    color: var(--grad-clr1);
}

.overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 9;
}

.overlay {
    position: relative;
    background: var(--linear-grad);
    color: #fff;
    left: -100%;
    height: 100%;
    width: 200%;
    transition: transform 0.6s ease-in-out;
}

.overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    height: 100%;
    width: 50%;
    transition: transform 0.6s ease-in-out;
}

.overlay-left {
    transform: translateX(-20%);
}

.overlay-right {
    right: 0;
    transform: translateX(0%);
}

.overlay-panel h1 {
    color: #fff;
    margin-bottom: 20px;
}

p {
    font-size: 20px;
    font-weight: 300;
    line-height: 50px;
    letter-spacing: 0.5px;
    margin: 30px 0;
}

#signIn, #signUp {
    border-color: #fff;
    background: none;
    color: #fff;
}

.container.right-panel-active .sign-up-container {
    transform: translateX(-100%);
    opacity: 1;
    z-index: 5;
}

.container.right-panel-active .sign-in-container {
    transform: translateX(100%);
    opacity: 0;
    z-index: 1;
}

.container.right-panel-active .overlay-container {
    transform: translateX(-100%);
}

.container.right-panel-active .overlay {
    transform: translateX(50%);
}

.overlay-panel.overlay-left {
    left: 0;
}

.container.right-panel-active .overlay-panel.overlay-left {
    transform: translateX(0);
}

.password-field {
    position: relative;
}

.password-field input {
    width: 100%;
    padding-right: 40px; /* Ensure space for the eye icon */
}

.password-field i {
    position: absolute;
    right: 10px; /* Position the icon inside the input box */
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #333;
    font-size: 1.2rem;
}

/* Main select box styling */
select {
    width: 100%;
    padding: 14px 15px;
    background-color: #f3f3f3;
    border: none;
    outline: none;
    font-size: 25px; /* Keep consistent font size */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    cursor: pointer;
}

/* Reduce size of the dropdown list that appears */
select option {
    font-size: 20px; /* Same font size as other inputs */
    padding: 8px 12px; /* Smaller padding for options */
}

/* Limit the height of the dropdown box and enable scrolling if necessary */
select {
    max-height: 150px; /* Adjust to control the visible height */
    overflow-y: auto; /* Enable scrolling if there are many options */
}

/* Hide the default placeholder from being selectable */
select option[disabled] {
    color: #888; /* Placeholder color */
    display: none; /* Prevents the placeholder from appearing in the dropdown list */
}

/* Reduce the size of the dropdown list box that appears */
select:focus option {
    max-height: 100px; /* Adjust height to reduce the visible dropdown list */
    overflow-y: auto; /* Allows scrolling if necessary */
}

/* Styles for the loading spinner */
button.loading {
    position: relative;
    pointer-events: none; /* Prevent further clicks */
    color: transparent; /* Hide button text */
}

button.loading:after {
    content: '';
    border: 3px solid #fff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}

/* Animation for spinner */
@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

    

