/* Layout Tengah Layar */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f5f9;
    padding: 20px;
}

.auth-card {
    background: white;
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 
                0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

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

.auth-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-top: 10px;
    color: var(--dark);
}

.auth-header p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Input Prefix (buat sapa.com/...) */
.input-prefix {
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8fafc;
}

.input-prefix span {
    padding: 0 12px;
    color: var(--gray);
    font-size: 0.9rem;
    background-color: #f1f5f9;
    border-right: 1px solid #e2e8f0;
    height: 46px; /* Samain tinggi input */
    display: flex;
    align-items: center;
}

.input-prefix input {
    border: none;
    border-radius: 0;
}

.input-prefix input:focus {
    box-shadow: none; /* Hilangkan shadow karena sudah di wrapper */
}

/* Button Full Width */
.btn-block {
    width: 100%;
    justify-content: center;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: var(--gray);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.hint {
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 4px;
    display: block;
}

/* Alert Box */
.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
}

.alert.error {
    background-color: #fef2f2;
    color: #ef4444;
    border: 1px solid #fee2e2;
}

.alert.success {
    background-color: #ecfdf5;
    color: #10b981;
    border: 1px solid #d1fae5;
}

.hidden { display: none; }

/* --- SOCIAL LOGIN BUTTONS --- */

.divider-text {
    position: relative;
    text-align: center;
    margin: 25px 0;
}

.divider-text span {
    background-color: #ffffff; /* Sesuaikan warna background kartu auth kamu */
    padding: 0 15px;
    position: relative;
    z-index: 1;
    color: #94a3b8;
    font-size: 0.85rem;
}

/* Garis di belakang teks "atau masuk dengan" */
.divider-text::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #e2e8f0;
    z-index: 0;
}

.social-login-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.2rem;
}

/* Efek Hover biar interaktif */
.btn-social:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-color: #cbd5e1;
}

/* Warna spesifik ikon pas di-hover (Opsional, biar makin cakep) */
.btn-social.google:hover i { color: #DB4437; }
.btn-social.github:hover i { color: #333; }
.btn-social.linkedin:hover i { color: #0077b5; }