* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Times New Roman', 'Playfair Display', serif;
}

body {
    height: 100vh;
    overflow: auto;
}

.container {
    display: flex;
    height: auto;
    min-height: 100vh;
}

.left-panel {
    flex: 1;
    background-color: #2E382E;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: white;
}

.logo {
    margin-bottom: 0px;
    text-align: center;
}

.logo-image {
    width: 280px;
    height: 280px;
    margin: 0 auto 0px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.welcome-text {
    text-align: center;
    max-width: 400px;
    margin-top: 0px;
}

.welcome-text h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.sub {
    color: white;
    opacity: 0.7;
    font-weight: normal;
    font-size: 1.1rem;
    line-height: 1.6;
}

.right-panel {
    flex: 1;
    background-color: #FFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
}

.login-content {
    width: 100%;
    max-width: 450px;
}

.login-content h1 {
    margin-bottom: 10px;
    text-align: center;
    color: #333;
    font-weight: 600;
    font-size: 2rem;
}

.subtitle {
    margin-bottom: 40px;
    text-align: center;
    color: #666;
    opacity: 0.7;
    font-weight: normal;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #555;
    font-weight: 500;
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #50C9CE;
    outline: none;
    box-shadow: 0 0 0 2px rgba(80, 201, 206, 0.2);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 8px;
    accent-color: #50C9CE;
}

.remember-me label {
    color: #555;
    font-size: 0.95rem;
}
.password-container {
    position: relative;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 5px;
}

.password-toggle:hover {
    color: #50C9CE;
}

.form-group input[type="password"],
.form-group input[type="text"] {
    padding-right: 50px !important;
}
.forgot-password a {
    color: #50C9CE;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.forgot-password a:hover {
    text-decoration: underline;
    color: #45a8ac;
}

#name {
    background: linear-gradient(90deg,#FFD700, #FF3B3B, #FF8C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

#form-title {
    color: #2E382E;
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    text-shadow: 0 0 1px #2E382E, 0 0 1px #2E382E;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background-color: #50C9CE;
    color: black;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 10px;
}

.login-btn:hover {
    background-color: #45a8ac;
}

.signup-link {
    text-align: center;
    margin-top: 25px;
    font-size: 1rem;
    color: #666;
}

.signup-link a {
    color: #50C9CE;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.signup-link a:hover {
    text-decoration: underline;
    color: #45a8ac;
}

/* Responsive design */
@media (max-width: 1200px) {
    .logo-image {
        width: 240px;
        height: 240px;
    }
}

@media (max-width: 992px) {
    .logo-image {
        width: 200px;
        height: 200px;
    }
    
    .welcome-text h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        height: auto;
    }
    
    .left-panel, .right-panel {
        flex: none;
        height: auto; 
        padding: 30px 20px;
    }
    
  
    
    .logo-image {
        width: 150px;
        height: 150px;
        margin-bottom: 10px;
    }
    
    .logo {
        margin-bottom: 10px;
    }
    
    .welcome-text {
        margin-top: 5px;
    }
    
    .welcome-text h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .sub {
        font-size: 1rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .login-content h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
}
@media (max-width: 576px) {
    .logo-image {
        width: 120px;
        height: 120px;
    }
    
    .welcome-text h1 {
        font-size: 1.6rem;
    }
    
    .sub {
        font-size: 0.9rem;
    }
    
    .left-panel, .right-panel {
        padding: 20px 15px;
    }
}

@media (max-width: 400px) {
    .logo-image {
        width: 100px;
        height: 100px;
    }
    
    .welcome-text h1 {
        font-size: 1.4rem;
    }
}


@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


.fade-in-active .login-content h1 {
    animation: slideInFromRight 0.6s ease-out 0.2s both;
}

.fade-in-active .subtitle {
    animation: slideInFromRight 0.6s ease-out 0.4s both;
}

.fade-in-active .form-group:nth-child(1) {
    animation: slideInFromRight 0.6s ease-out 0.6s both;
}

.fade-in-active .form-group:nth-child(2) {
    animation: slideInFromRight 0.6s ease-out 0.8s both;
}

.fade-in-active .form-options {
    animation: slideInFromRight 0.6s ease-out 1s both;
}

.fade-in-active .login-btn {
    animation: slideInFromRight 0.6s ease-out 1.2s both;
}

.fade-in-active .signup-link {
    animation: slideInFromRight 0.6s ease-out 1.4s both;
}


.fade-in:not(.fade-in-active) .login-content > * {
    opacity: 0;
}

.main-content {
    opacity: 0;
    transition: opacity 1s ease-in;
}

.main-content.show {
    opacity: 1;
}

.fade-in {
    opacity: 0;
    transform: scale(0.98) translateY(30px);
    transition: all 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-active {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.fade-in:not(.fade-in-active) .logo-image {
    opacity: 0;
    transform: scale(0.8) rotate(-5deg);
    transition: all 1s ease-out 0.2s;
}

.fade-in:not(.fade-in-active) .welcome-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out 0.4s;
}

.fade-in:not(.fade-in-active) .login-content {
    opacity: 0;
    transform: translateX(30px);
    transition: all 1s ease-out 0.6s;
}

.fade-in-active .logo-image,
.fade-in-active .welcome-text,
.fade-in-active .login-content {
    opacity: 1;
    transform: scale(1) translateX(0) translateY(0) rotate(0);
}


@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(-10deg);
    }
    70% {
        transform: scale(1.05) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes typewriterLine1 {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes typewriterLine2 {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blinkCursor {
    0%, 100% {
        border-color: transparent;
    }
    50% {
        border-color: white;
    }
}

@keyframes removeCursor {
    to {
        border-right-color: transparent;
    }
}

.fade-in-active .logo-image {
    animation: logoReveal 1s ease-out 0.2s both;
}


.typing-container h1 {
    overflow: hidden;
    white-space: nowrap;
    margin: 0 auto;
    opacity: 1;
    border-right: 3px solid transparent;
    width: 0;
    animation: 
        typewriterLine1 1.5s steps(20, end) 1.2s both,
        blinkCursor 0.75s step-end infinite 1.2s,
        removeCursor 0.1s forwards 2.7s;
}

/* Ensure typing animations work after preloader */
.typing-container.animate-typing h1 {
    overflow: hidden;
    white-space: nowrap;
    margin: 0 auto;
    opacity: 1;
    border-right: 3px solid transparent;
    width: 0;
    animation: 
        typewriterLine1 1.5s steps(20, end) 0.1s both,
        blinkCursor 0.75s step-end infinite 0.1s,
        removeCursor 0.1s forwards 1.6s;
}

.typing-container.animate-typing .typing-line-1 {
    overflow: hidden;
    white-space: nowrap;
    margin: 0 auto;
    opacity: 1;
    border-right: 3px solid transparent;
    width: 0;
    animation: 
        typewriterLine1 2s steps(35, end) 1.6s both,
        blinkCursor 0.75s step-end infinite 1.6s,
        removeCursor 0.1s forwards 3.6s;
}

.typing-container.animate-typing .typing-line-2 {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    margin: 0;
    opacity: 1;
    border-right: 3px solid transparent;
    width: 0;
    animation: 
        typewriterLine2 0.5s steps(10, end) 3.6s both,
        blinkCursor 0.75s step-end infinite 3.6s,
        removeCursor 0.1s forwards 4.1s;
}

/* Adjust right panel animation timing */
.typing-container.animate-typing ~ .right-panel {
    opacity: 0;
    animation: fadeIn 0.5s ease-out 4.1s forwards;
}

.typing-container.animate-typing ~ .right-panel .login-content h1 {
    animation: slideInFromRight 0.6s ease-out 4.3s both;
}

.typing-container.animate-typing ~ .right-panel .subtitle {
    animation: slideInFromRight 0.6s ease-out 4.5s both;
}

.typing-container.animate-typing ~ .right-panel .form-group:nth-child(1) {
    animation: slideInFromRight 0.6s ease-out 4.7s both;
}

.typing-container.animate-typing ~ .right-panel .form-group:nth-child(2) {
    animation: slideInFromRight 0.6s ease-out 4.9s both;
}

.typing-container.animate-typing ~ .right-panel .form-options {
    animation: slideInFromRight 0.6s ease-out 5.1s both;
}

.typing-container.animate-typing ~ .right-panel .login-btn {
    animation: slideInFromRight 0.6s ease-out 5.3s both;
}

.typing-container.animate-typing ~ .right-panel .signup-link {
    animation: slideInFromRight 0.6s ease-out 5.5s both;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.typing-line-1 {
    overflow: hidden;
    white-space: nowrap;
    margin: 0 auto;
    opacity: 1;
    border-right: 3px solid transparent;
    width: 0;
    animation: 
        typewriterLine1 2s steps(35, end) 2.7s both,
        blinkCursor 0.75s step-end infinite 2.7s,
        removeCursor 0.1s forwards 4.7s;
}
.typing-line-2 {
    display: inline-block; 
    overflow: hidden;
    white-space: nowrap;
    margin: 0; 
    opacity: 1;
    border-right: 3px solid transparent;
    width: 0;
    animation: 
        typewriterLine2 0.5s steps(10, end) 4.7s both,
        blinkCursor 0.75s step-end infinite 4.7s,
        removeCursor 0.1s forwards 5.2s;
}


.typing-container .sub {
    text-align: center; 
}




/* Right panel animations - simplified and working */
.fade-in-active .right-panel {
    opacity: 0;
    animation: fadeIn 0.5s ease-out 4.1s forwards;
}

.fade-in-active .login-content h1 {
    animation: slideInFromRight 0.6s ease-out 4.3s both;
}

.fade-in-active .subtitle {
    animation: slideInFromRight 0.6s ease-out 4.5s both;
}

.fade-in-active .form-group:nth-child(1) {
    animation: slideInFromRight 0.6s ease-out 4.7s both;
}

.fade-in-active .form-group:nth-child(2) {
    animation: slideInFromRight 0.6s ease-out 4.9s both;
}

.fade-in-active .form-options {
    animation: slideInFromRight 0.6s ease-out 5.1s both;
}

.fade-in-active .login-btn {
    animation: slideInFromRight 0.6s ease-out 5.3s both;
}

.fade-in-active .signup-link {
    animation: slideInFromRight 0.6s ease-out 5.5s both;
}

/* Make sure fadeIn keyframe exists */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}