* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: rgb(210, 210, 230);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Main Container */
.container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 550px;
    background: white;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* Form Container */
.form-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: all 0.6s ease-in-out;
    opacity: 0;
    visibility: hidden;
}

.form-container.active {
    opacity: 1;
    visibility: visible;
}

/* Welcome Panel */
.welcome-panel {
    flex: 1;
    background-color: rgb(37, 99, 235);
    display: flex;
    padding-right: 60px;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
}

/* Curved Edge Effect */
#loginContainer .welcome-panel::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: white;
    border-radius: 50% 0 0 50%;
    transform: translateX(50px);
}

.welcome-content {
    display: flex;
    flex-direction: column;
    align-items: center; 
    max-width: 300px;
}

.welcome-content h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 15px;
    line-height: 1.2;
}

.welcome-content a {
    color: white;
    font-size: 1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    text-decoration: none;
}

.welcome-content a:hover {
    text-decoration: underline;
}

/* Form Panel */
.form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 50px;
}

.form-content {
    width: 100%;
    max-width: 350px;
}

.form-content h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 400;
}

/* Input Fields */
.input-field {
    position: relative;
    margin-bottom: 25px;
}

.input-field input {
    width: 100%;
    padding: 18px 50px 18px 20px;
    border: none;
    background: #f5f5f5;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    color: #333;
}

.input-field input:focus {
    background: #e8e8e8;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.input-field input::placeholder {
    color: #999;
}

.input-field i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.1rem;
}

/* Forgot Password Link */
.forgot-link {
    text-align: right;
    margin-bottom: 30px;
}

.forgot-link a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-link a:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

/* Submit Button */
/* .submit-button {
    width: 100%;
    padding: 18px;
    background-color: rgb(37, 99, 235);
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
} */

.submit-button {
  display: inline-block;
  height: 20%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 20px;
  font-weight: 1000;
  width: 100%;
  background-color: rgb(37, 99, 235);
  color: white;
  border-radius: 25px;
  text-decoration: none; /* removes underline */
  border: none;
  cursor: pointer;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.submit-button:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        height: auto;
        min-height: 600px;
        max-width: 400px;
    }

    .form-container {
        flex-direction: column;
    }

    .welcome-panel {
        order: 2;
        min-height: 200px;
    }

    .welcome-panel::after {
        display: none;
    }

    .form-panel {
        order: 1;
        padding: 40px 30px;
    }

    .welcome-content h2 {
        font-size: 2rem;
    }

    .form-content h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .form-panel {
        padding: 30px 20px;
    }

    .welcome-content {
        padding: 20px;
    }

    .welcome-content h2 {
        font-size: 1.8rem;
    }

    .form-content h2 {
        font-size: 1.6rem;
    }

    .input-field input {
        padding: 15px 45px 15px 18px;
    }

    .submit-button {
        padding: 15px;
        font-size: 1rem;
    }
}