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

:root {
    --primary-dark: #512da8;
    --white: #ffffff;
    --medium-gray: #cccccc;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body{
    background-color: #c9d6ff;
    background: linear-gradient(to right, #e2e2e2, #c9d6ff);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 0;
}

.navbar {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    padding: 0;
    z-index: 1001;
}

.nav-links a {
    margin-left: 20px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    transition: all 0.6s;
    padding: 8px 30px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-links a:hover {
    color: #512da8;
    background-color: #ffffff;
    transform: scale(1.05);
    border-color: #ffffff;
}

.container{
    background-color: #fff;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
    width: 768px;
    max-width: 100%;
    min-height: 480px;
}

.container h1{
    margin-bottom: 40px;
}

.container p{
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.3px;
    margin: 20px 0;
}

.container button{
    background-color: #512da8;
    color: #fff;
    font-size: 12px;
    padding: 10px 45px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 600px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 10px;
    cursor: pointer;
}

.container button:hover {
    background-color: #311b92;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.container button.hidden{
    background-color: transparent;
    border-color: #fff;
}

.container button.hidden:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.container form{
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    height: 100%;
}

.container input{
    background-color: #eee;
    border: none;
    margin: 8px 0;
    padding: 10px 15px;
    font-size: 13px;
    width: 100%;
    border-radius: 8px;
    outline: none;
}

.form-container{
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.male {
    left: 0;
    width: 50%;
    z-index: 2;
}

.male button{
    margin-top: 30px;
}

.container.active .male{
    transform: translateX(100%);
}

.female {
    left: 0;
    width: 50%;
    z-index: 1;
    opacity: 0;
}

.female button{
    margin-top: 30px;
}

.container.active .female{
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: move 0.6s ;
}

@keyframes move{
    0%, 49.99%{
        opacity: 0;
        z-index: 1;
    }
    50%, 100%{
        opacity: 1;
        z-index: 5;
    }
}

.toggle-container{
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: all 0.6s ease-in-out;
    border-radius: 150px 0 0 100px;
    z-index: 1000;
}

.container.active .toggle-container{
    transform: translateX(-100%);
    border-radius: 0 150px 100px 0;
}

.toggle{
    background-color: #512da8;
    height: 100%;
    background: linear-gradient(to right, #5c6bc0, #512da8);
    color: #fff;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transition: all 0.6s ease-in-out;
    transform: translateX(0);
}

.container.active .toggle{
    transform: translateX(50%);
}

.toggle-panel{
    position: absolute;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 30px;
    text-align: center;
    top: 0;
    transform: translateX(0);
    transition: all 0.6s ease-in-out;
}

.toggle-left{
    transform: translateX(-200%);
}

.container.active .toggle-left{
    transform: translateX(0);
}

.toggle-right{
    right: 0;
    transform: translateX(0);
}

.container.active .toggle-right{
    transform: translateX(200%);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-content h2 {
    margin-bottom: 20px;
    text-align: center;
}

.modal-content form {
    display: flex;
    flex-direction: column;
}

.modal-content input {
    background-color: #eee;
    margin: 10px 0;
    padding: 10px;
    border: none;
    border-radius: 5px;
    outline: none;
}

.modal-content button {
    background-color: #512da8;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.modal-content button:hover {
    background-color: #311b92;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

.error-message {
    padding: 12px;
    background-color: #f8d7da;
    border-radius: 6px;
    color: #a42834;
    font-size: 16px;
    text-align: center;
    margin-bottom: 20px;
}   
 /* Title Section Styles */
.title-container {
    background-color: var(--primary-dark);
    padding: 1.5rem 0;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    width: 100%;
    position: relative;
}

/* Main content wrapper to center the container */
.main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    width: 100%;
    padding: 2rem 0;
}

.system-title {
    text-align: center;
    color: var(--white);
}

.system-title h1 {
    font-size: 2.5rem;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.system-title .subtitle {
    font-size: 1rem;
    color: var(--medium-gray);
    margin: 0.5rem 0 0;
    letter-spacing: 1px;
    font-weight: 300;
}