/* Import Font dari Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Reset CSS Dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color:#fcfeff;
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 950px;
    height: 520px;
    background-color: #ffffff;
    border-radius: 50px 20px 50px 20px;
    box-shadow: 0 5px 15px rgba(92, 92, 92, 0.3);
    overflow: hidden;
}

.card-login {
    display: flex;
    width: 100%;
    height: 100%;
}

/* ========= GAYA PANEL KIRI (GAMBAR) ========= */
.left-panel {
    flex: 1.1;
    background-image: url(../assets/hero.png);
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
    position: relative;
    background-color: #fff;
}

.left-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-weight: 600;
    font-size: 1.1rem;
    color: #bcbcbc;
}

.nav-buttons a {
    color: #fff;
    text-decoration: none;
    margin-left: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-buttons a.btn-join {
    border: 1px solid #fff;
    padding: 7px 18px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-buttons a.btn-join:hover {
    background-color: #fff;
    color: #000;
}

.left-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile {
    display: flex;
    align-items: center;
}

.profile img {
    width: 50px;
    height: auto;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-info strong {
    font-weight: 600;
    font-size: 0.9rem;
    color: #bcbcbc;
}

.profile-info span {
    font-size: 0.75rem;
    color: #ddd;
}

.nav-arrows button {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-left: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.nav-arrows button:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* ========= GAYA PANEL KANAN (FORM) ========= */
.right-panel {
    flex: 1;
    padding: 30px 45px;
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

.right-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.right-header img {
    width: 40px;
    height: auto;
    object-fit: cover;
}

.language-selector {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
}

.language-selector img {
    margin-right: 8px;
}

.language-selector span {
    margin-right: 5px;
}

.language-selector i {
    font-size: 0.7rem;
    color: #888;
}

.form-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-wrapper h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.form-wrapper p {
    color: #888;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #3496fe;
    box-shadow: 0 0 0 3px rgba(254, 79, 52, 0.1);
}

.forgot-password {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 0.8rem;
    color: #fe4f34;
    text-decoration: none;
}

.divider {
    text-align: center;
    margin: 18px 0;
    color: #aaa;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background-color: #e0e0e0;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.btn {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-google {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    color: #555;
    margin-bottom: 12px;
}

.btn-google:hover:not(:disabled) {
    background-color: #f9f9f9;
    color: #3cb6fd;
    box-shadow: 0 5px 15px rgba(124, 168, 255, 0.3);
}

.btn-google i {
    color: #db4437;
    font-size: 1.1rem;
    margin-right: 10px;
}

.btn-login {
    background-color: #3cb6fd;
    color: #fff;
    box-shadow: 0 5px 15px rgba(98, 98, 98, 0.3);
}

.btn-login:hover:not(:disabled) {
    background-color: #ffffff;
    color: #3cb6fd;
    box-shadow: 10px 5px 15px rgba(124, 168, 255, 0.3);
}

.btn-text {
    display: inline-block;
}

.btn-spinner {
    display: none;
}

.fa-spinner {
    margin-right: 8px;
}

.signup-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #555;
}

.signup-link a {
    color: #000;
    font-weight: 600;
    text-decoration: none;
}

.social-icons {
    text-align: center;
    margin-top: 15px;
}

.social-icons a {
    color: #888;
    text-decoration: none;
    margin: 0 10px;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #333;
}

/* Custom SweetAlert2 styling */
.swal-popup-login {
    font-family: 'Poppins', sans-serif !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        max-width: 400px;
        height: auto;
        border-radius: 20px;
    }
    
    .left-panel {
        clip-path: none;
        min-height: 200px;
    }
    
    .right-panel {
        padding: 20px;
    }
    
    .form-wrapper h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .login-container {
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    .right-panel {
        padding: 15px;
    }
    
    .form-wrapper h1 {
        font-size: 1.5rem;
    }
}

.swal2-container {
    z-index: 999999 !important;
}