

:root {
    --primary-color: #E2725B;   /* Terracotta */
    --secondary-color: #8A9A5B; /* Sage Green */
    --background-color: #F8F4E9; /* Light Cream */
    --text-color: #333333;
    --light-text-color: #FFFFFF;
    --card-bg-color: #FFFFFF;
    --font-family: 'Poppins', sans-serif;
    --safe-area-inset-top: env(safe-area-inset-top);
    --safe-area-inset-right: env(safe-area-inset-right);
    --safe-area-inset-bottom: env(safe-area-inset-bottom);
    --safe-area-inset-left: env(safe-area-inset-left);
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-family);
}

.auth-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}


.auth-visual {
    flex: 1;
    background: url('image/grid2.jpeg') no-repeat center center/cover;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4rem;
    color: var(--light-text-color);
    padding-left: calc(4rem + var(--safe-area-inset-left));
    padding-top: calc(4rem + var(--safe-area-inset-top));
    padding-bottom: calc(4rem + var(--safe-area-inset-bottom));
}

.auth-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
    z-index: 1;
}

.auth-visual .logo {
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--light-text-color);
    position: relative;
    z-index: 2;
}

.visual-text {
    position: relative;
    z-index: 2;
}

.visual-text h1 {
    font-size: 2.8rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.visual-text p {
    font-size: 1.1rem;
    max-width: 400px;
}


.auth-form-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: var(--card-bg-color);
    position: relative; /* Diperlukan untuk posisi link kembali */
    padding-left: calc(2rem + var(--safe-area-inset-left));
    padding-right: calc(2rem + var(--safe-area-inset-right));
    padding-top: calc(2rem + var(--safe-area-inset-top));
    padding-bottom: calc(2rem + var(--safe-area-inset-bottom));
}

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

.auth-form h2 {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.auth-form .form-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2.5rem;
}

.form-subtitle a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #aaa;
    margin: 2rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.divider:not(:empty)::before {
    margin-right: .5em;
}

.divider:not(:empty)::after {
    margin-left: .5em;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background-color: #f5f5f5;
    color: var(--text-color);
    border: 1px solid #ddd;
}
.btn-social:hover {
    background-color: #eee;
}
.btn-social i {
    font-size: 1.5rem;
}


a.back-to-home {
    position: absolute;
    top: 2.5rem;
    left: 2.5rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    z-index: 10;
}

a.back-to-home:hover {
    color: var(--primary-color);
}

a.back-to-home i {
    font-size: 1.2rem;
}



@media (max-width: 900px) {
    .auth-container {
        flex-direction: column;
        background: url('image/grid2.jpeg') no-repeat center center/cover;
    }

    .auth-visual {
        flex: 0 0 35%;
        justify-content: center;
        text-align: center;
        padding: 2rem;
        background: transparent;
    }
    
    .auth-visual::before {
        background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
    }

    .visual-text h1 {
        font-size: 1.8rem;
    }

    .visual-text p {
        display: none;
    }

    .auth-form-container {
        flex: 1;
        background-color: var(--card-bg-color);
        border-radius: 30px 30px 0 0;
        margin-top: -40px;
        position: relative;
        z-index: 5;
        box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
        padding: 1.5rem;
        padding-top: 5rem; 
        padding-bottom: calc(2.5rem + var(--safe-area-inset-bottom));
        display: flex;
        flex-direction: column;
        
        background-image: 
            url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%238a9a5b' fill-opacity='0.1' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E"),
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Crect x='0' y='0' width='12' height='12' fill-opacity='0.1' fill='%23e2725b'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: top 10px right 10px, bottom 10px left 10px;
    }

    
    a.back-to-home {
        top: 2rem;
        left: 1.5rem;
    }
    
    .auth-form {
        width: 100%;
        overflow-y: auto;
        padding-right: 5px;
        text-align: left;
    }

    .auth-form h2 {
        text-align: center;
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .auth-form .form-subtitle {
        text-align: center;
        margin-bottom: 2rem;
    }
}