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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
}

.login-container {
    display: flex;
    height: 100vh;
}

.left-panel {
    flex: 1.5;
    background-color: #f9f8fc;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.left-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 1;
    pointer-events: none;
}

.left-content {
    z-index: 2;
    max-width: 800px;
    margin-bottom: 40px;
}

.main-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 10px;
}

.login-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    z-index: 1;
}

.right-panel {
    flex: 1;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.logo {
    width: 450px;
    height: 100px;
}

.company-name {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
}

.sign-in-title {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 40px;
}

.error-message {
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.error-message p {
    color: #d00;
    font-size: 14px;
    margin: 0;
}

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background-color: #fafafa;
}

.form-group input:focus {
    outline: none;
    border-color: #7B8EC8;
    background-color: #fff;
}

.sign-in-button {
    width: 100%;
    padding: 14px;
    background-color: #593196;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.sign-in-button:hover {
    background-color: #593196;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(123, 142, 200, 0.3);
}

.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.divider span {
    background-color: #fff;
    padding: 0 16px;
    color: #999;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e0e0e0;
}

.forgot-password {
    text-align: center;
    margin-top: 30px;
}

.forgot-password a {
    color: #7B8EC8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #6B7DB8;
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .main-title {
        font-size: 36px;
    }

    .login-background {
        width: 400px;
    }
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }

    .left-panel {
        display: none;
    }

    .right-panel {
        flex: 1;
        height: 100vh;
    }

    .login-form-container {
        max-width: 350px;
    }
}

.login-form p {
    margin-bottom: 20px;
}

.login-form p label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.login-form p input[type="text"],
.login-form p input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background-color: #fafafa;
}

.login-form p input[type="text"]:focus,
.login-form p input[type="password"]:focus {
    outline: none;
    border-color: #7B8EC8;
    background-color: #fff;
}

/* Hide help text if present */
.login-form .helptext {
    display: none;
}