:root {
    --vh: 1vh;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 80%;
    max-width: 900px;
    height: 500px;
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    padding: 0 0 0 0;
}

.left-panel {
    width: 50%;
    background: linear-gradient(135deg, #006400, #228B22);
    padding: 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.left-panel h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.left-panel p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.wave-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255, 255, 255, 0.1)" d="M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,197.3C672,192,768,160,864,165.3C960,171,1056,213,1152,218.7C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.5;
}

.logo {
    width: 120px;
    height: 120px;
    background: url('../images/kemenag.png') no-repeat center;
    background-size: contain;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.right-panel {
    width: 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.welcome-text {
    margin-bottom: 30px;
    text-align: center;
}

.welcome-text h2 {
    color: #006400;
    margin-bottom: 10px;
}

.welcome-text p {
    color: #666;
    font-size: 0.9rem;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #006400;
    outline: none;
}

.remember-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.remember-check {
    display: flex;
    align-items: center;
}

.remember-check input {
    margin-right: 8px;
}

.forgot-password {
    color: #006400;
    text-decoration: none;
}

.submit-btn {
    background-color: #006400;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background-color: #004d00;
}

.create-account {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: #666;
}

.create-account a {
    color: #006400;
    text-decoration: none;
    font-weight: bold;
}

.site-url {
    position: absolute;
    bottom: 20px;
    left: 40px;
    color: white;
    opacity: 0.7;
    font-size: 0.8rem;
    z-index: 2;
}

@media (max-width: 768px) {
    body {
        height: calc(var(--vh, 1vh) * 100);
    }

    .container {
        flex-direction: column;
        height: auto;
    }
    .left-panel, .right-panel {
        width: 100%;
        padding: 30px;
    }
    .left-panel {
        text-align: center;
        padding-bottom: 60px;
        height: 21em;
    }
    .right-panel {
        height: 30em!important;
    }
    .logo {
        margin: 0 auto 20px;
    }
    .site-url {
        position: relative;
        bottom: auto;
        left: auto;
        text-align: center;
        margin-top: 20px;
    }
}