*{
    margin:0px;
    padding:0px;
}

.password-container {
position: relative;
display: flex;
align-items: center;
}

.password-container input {
    padding-right: 40px;
    border-radius: 8px;
    border: 1px solid #dadce0;
    padding: 12px 16px;
    font-size: 14px;
}

.password-container input:focus {
    border-color: #059202;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
    outline: none;
}

.toggle-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    color: #5f6368;
    transition: color 0.2s ease;
}

.toggle-eye:hover {
    color: #059202;
}
.head{
    font-family: DM Sans;
    font-size: 28px;
    font-weight: 700;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: #202124;
}
.head p{
    margin-bottom:0;
}
.sub-head{
    font-family: DM Sans;
    font-size: 14px;
    font-weight: 400;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    margin-bottom:5%;
    color:#5f6368;
    line-height: 1.5;
}
.sub-head p{
    margin-bottom:0;
}

.custom-card{
 border: 0px solid #059202;
 border-radius: 25px;
 padding:25px 40px 40px 40px;
}

.bg-image {
    /* background-image: url('/frontend-web/sideimage.png'); */
    background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      height: 100%; 
      min-height: 100vh; 
      margin: 0; 
      padding: 0;
  }
  
  html, body {
    height: 100%;
  }
  .container {
    display: flex;
    flex-direction: row;
    min-height: 100%;
  }
  
.buttonLogin{
    top: 524px;
    left: 780px;
    gap: 7.58px;
    border-radius: 8px ;
    background-color: #069E2D;
    margin-top: 24px;
}
.buttonLogin:hover{
    background-color: #02661b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 158, 45, 0.3);
}
.buttonLogin button:hover{
    color:white;
}

.buttonLogin button{
    color:white;
}
.logologin{
    width:50%;
    padding-left:12%;
    padding-top:5%;
}

#form-login.form-label{
    font-family: DM Sans;
    font-size:14px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 8px;
  }

.form-label {
    color: #202124;
    margin-bottom: 8px;
}

  .form-group {
    transition: all 0.3s ease;
}

.btn {
    transition: all 0.3s ease;
}

#password-group, #divider, #login-with-passkey, #manual-login-link, #login-button , #divider-passkey {
    transition: all 0.3s ease;
}

/* Animasi untuk elemen yang muncul/hilang */
.fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.fade-out {
    opacity: 0 !important;
    transform: translateY(-10px) !important;
}

/* Styling untuk tombol passkey */
#login-with-passkey:hover {
    background-color: rgba(6, 158, 45, 0.1) !important;
}

#switch-to-manual:hover {
    background-color: rgba(108, 117, 125, 0.1) !important;
}

/* Memastikan elemen tersembunyi tidak mengambil ruang */
#password-group[style*="display: none"],
#divider[style*="display: none"],
#divider-passkey[style*="display: none"],
#login-with-passkey[style*="display: none"],
#login-button[style*="display: none"],
#manual-login-link[style*="display: none"] {
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Google-style Login Styling */
.login-step {
    transition: all 0.3s ease-in-out;
}

.auth-option {
    margin-bottom: 12px;
}

.auth-button-container {
    width: 100%;
    position: relative;
}

.auth-button {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    background-color: #ffffff;
    color: #059202;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 48px;
    position: relative;
    margin-bottom: 8px;
}

.auth-button:hover {
    background-color: #f8f9fa;
    border-color: #dadce0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    color: #059202;
}

.auth-button:active {
    background-color: #f1f3f4;
    transform: translateY(1px);
}

.auth-button i {
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.auth-form {
    animation: slideDown 0.3s ease-out;
    border-radius: 8px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back button styling */
#back-to-username {
    color: #5f6368;
    font-size: 14px;
    text-decoration: none;
    padding: 8px 0;
    border: none;
    background: none;
    transition: color 0.2s ease;
}

#back-to-username:hover {
    color: #059202;
    text-decoration: none;
}

#back-to-username i {
    margin-right: 8px;
}

/* Login with other account button */
#try-with-other-account {
    color: #5f6368;
    font-size: 14px;
    text-decoration: none;
    padding: 8px 0;
    border: none;
    background: none;
    transition: color 0.2s ease;
    width: 100%;
    text-align: center;
}

#try-with-other-account:hover {
    color: #059202;
    text-decoration: none;
}

#try-with-other-account i {
    margin-right: 8px;
}

/* Username display styling */
#display-username {
    font-weight: 600;
}

/* Step auth styling */
#step-auth {
    padding: 0px 0;
}

/* #step-auth .head {
    margin-bottom: 0px;
} */

#step-auth .sub-head {
    margin-bottom: 24px;
}

/* Step username styling
#step-username {
    padding: 20px 0;
} */

#step-username .head {
    margin-bottom: 2px;
    font-size: 28px;
}

#step-username .sub-head {
    margin-bottom: 24px;
}

/* Form transitions */
.form-control {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
    border: 1px solid #dadce0;
    padding: 12px 16px;
    font-size: 14px;
}

.form-control:focus {
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
    outline: none;
}

.form-control::placeholder {
    color: #9aa0a6;
}

/* Loading states */
.auth-button.loading {
    opacity: 0.7;
    pointer-events: none;
}

.auth-button.loading::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #dadce0;
    border-top: 2px solid #059202;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Button loading state */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

/* Button styling improvements */
.buttonLogin button {
    font-weight: 500;
    letter-spacing: 0.5px;
}

.buttonLogin button:disabled {
    background-color: #e8eaed;
    color: #5f6368;
}

/* Smooth transitions for all interactive elements */
.btn, .form-control, .auth-button {
    transition: all 0.2s ease;
}

/* Focus states */
.btn:focus, .form-control:focus, .auth-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

/* Loading spinner */
.loading-spinner {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #059202;
}

.loading-spinner i {
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .auth-button {
        padding: 14px 16px;
        min-height: 52px;
    }
    
    .head {
        font-size: 24px;
    }
    
    .sub-head {
        font-size: 13px;
    }
}