/* Login Page Styles */
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 40px rgba(0, 102, 204, 0.1);
    transition: background-color 0.3s, color 0.3s;
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.logo-xl {
    background: var(--xl-blue);
    color: white;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 8px;
    margin-right: 10px;
    font-size: 18px;
}

.logo-text {
    font-weight: 600;
    color: var(--xl-blue);
    font-size: 20px;
}

h1 {
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 600;
}

.subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 15px;
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(to right, var(--xl-blue), var(--xl-blue-light));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.login-btn svg {
    transition: transform 0.3s;
}

.login-btn:hover svg {
    transform: translateX(3px);
}

.footer {
    margin-top: 30px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.footer a {
    color: var(--xl-blue);
    text-decoration: none;
    font-weight: 500;
}

.footer a:hover {
    text-decoration: underline;
}

.social-login {
    margin-top: 20px;
}

.social-login p {
    margin-bottom: 15px;
    position: relative;
}

.social-login p::before,
.social-login p::after {
    content: "";
    position: absolute;
    height: 1px;
    width: 30%;
    background: var(--xl-gray);
    top: 50%;
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

/* .social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
} */

/* .social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--xl-gray);
    background: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.social-btn:hover {
    transform: translateY(-3px);
}

.social-btn.google {
    color: #DB4437;
}

.social-btn.facebook {
    color: #4267B2;
} */

/* New Google Button Styles */
.social-btn.google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: white;
    color: #5F6368;
    border: 1px solid #DADCE0;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    width: auto;
    height: auto;
    transition: all 0.3s;
}

.social-btn.google:hover {
    background: #F8F9FA;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.social-btn.google img {
    width: 18px;
    height: 18px;
}

/* Update social icons container */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-direction: column; /* Changed from row to column */
    align-items: center;
}

.social-icons button {
    width: 100%;
    max-width: 280px;
}

/* Modal Registration Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: auto;
}

.modal-content h2 {
    margin-bottom: 25px;
    text-align: center;
    color: var(--xl-blue);
}

.modal-content .input-group {
    margin-bottom: 15px;
}

.modal-content .social-login {
    margin: 25px 0 15px;
    text-align: center;
}

.modal-content .social-login p {
    margin-bottom: 15px;
    color: #666;
    position: relative;
}

.modal-content .social-login p::before,
.modal-content .social-login p::after {
    content: "";
    position: absolute;
    height: 1px;
    width: 25%;
    background: var(--xl-gray);
    top: 50%;
}

.modal-content .social-login p::before {
    left: 0;
}

.modal-content .social-login p::after {
    right: 0;
}

.modal-content .social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.modal-content .btn-primary {
    margin-top: 20px;
}

/* Modal Styles for Mobile */
@media (max-height: 700px) {
    .modal-content {
        margin: 10% auto; /* Increased from 2% to 10% */
        padding: 20px;
        max-height: 80vh; /* Ensure it doesn't get too tall */
    }
    
    .modal-content h2 {
        margin-bottom: 15px;
        font-size: 22px;
    }
    
    .input-group input {
        padding: 14px 18px;
    }
    
    .btn-primary {
        padding: 14px;
    }
}

/* Additional modal positioning adjustments */

.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 450px;
  position: relative;
  animation: fadeIn 0.3s;
}

.dark-theme .modal-content {
  background-color: var(--night-card);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.close-modal:hover {
  color: var(--xl-red);
}

@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        padding: 20px 15px;
    }
    
    .card {
        padding: 30px 20px;
    }
    
    .logo {
        margin-bottom: 20px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }
}

.toggle-password {
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.forgot-password {
    text-align: right;
    margin: -1px 0 15px;
}

.forgot-password a {
    color: #4a6bff;
    font-size: 0.9rem;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Pemisah Opsi */
.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #777;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.divider::before {
    margin-right: 10px;
}

.divider::after {
    margin-left: 10px;
}

/* Toggle Login Method */
.toggle-login-method {
    text-align: center;
    margin: 15px 0;
}

.text-btn {
    background: none;
    border: none;
    color: var(--xl-blue);
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
}

.text-btn:hover {
    text-decoration: underline;
}

.text-btn i {
    font-size: 12px;
    transition: transform 0.3s;
}

.text-btn.active i {
    transform: rotate(180deg);
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo-link:hover {
    text-decoration: none;
}

/* Logo Container with Home Icon */
.logo-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Diubah dari center ke flex-start */
    margin-bottom: 30px;
    position: relative;
}

.home-link {
    color: var(--xl-blue);
    font-size: 20px;
    transition: all 0.3s;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    position: absolute; /* Ditambahkan */
    top: 3px; /* Posisi lebih ke atas */
    right: -10px; /* Posisi lebih ke kanan */
}

.home-link:hover {
    color: var(--xl-blue-light);
    background-color: rgba(0, 102, 204, 0.1);
    transform: scale(1.1);
}

@media (max-width: 480px) {
    .home-link {
        font-size: 18px;
        width: 32px;
        height: 32px;
        top: -8px; /* Adjust for mobile */
        right: -8px; /* Adjust for mobile */
    }
    
    .logo-container {
        margin-bottom: 20px;
    }
}

#googleLoginBtn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

#googleLoginBtn .spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* Tambahkan style untuk info email */
.email-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-left: 4px solid #007bff;
}

.email-info-text {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

.email-info-text i {
    color: #007bff;
}

.email-domains-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.domain-badge {
    background-color: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}