/* ===== AUTH SECTION BASE ===== */
.auth-section {
    min-height: 100vh;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
}

/* Center content inside auth buttons */
.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* jarak antara ikon dan teks */
    text-align: center;
}

/* Jika ingin tombol Google memiliki gaya khusus (opsional) */
.auth-btn.google-btn {
    background-color: #fff;
    color: #333;
    border: 1px solid var(--border-color);
    margin-top: 0.5rem;
}

.auth-btn.google-btn:hover {
    background-color: #f8f9fa;
    color: #000;
    border-color: #dadce0;
}

/* Untuk desktop: background image */
@media (min-width: 992px) {
    .auth-section {
        background: linear-gradient(135deg, rgba(242, 242, 242, 0.95) 0%, rgba(250, 250, 250, 0.95) 100%),
            url("../img/blender_50_artwork_2K.webp") no-repeat center center;
        background-size: cover;
        background-attachment: fixed;
        background-blend-mode: overlay;
        padding: 2rem;
    }
}

/* ===== AUTH CONTAINER ===== */
.auth-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

/* Logo di atas form */
.auth-logo {
    display: block;
    text-align: center;
    margin-bottom: 2rem;
    text-decoration: none;
}

.auth-logo img {
    height: 50px;
    width: auto;
    transition: opacity 0.2s;
}

.auth-logo:hover img {
    opacity: 0.8;
}

/* Responsif logo */
@media (min-width: 768px) {
    .auth-logo img {
        height: 60px;
    }
}

/* ===== AUTH CARD ===== */
.auth-card {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    width: 100%;
    backdrop-filter: blur(10px);
    background-color: rgba(250, 250, 250, 0.95);
}

/* Untuk desktop: card lebih besar */
@media (min-width: 768px) {
    .auth-card {
        padding: 2.5rem;
    }
}

/* ===== AUTH HEADER (DI DALAM CARD) ===== */
.auth-subtitle-only {
    color: #6c757d;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

/* Untuk desktop: header lebih besar */
@media (min-width: 768px) {
    .auth-subtitle-only {
        font-size: 1.1rem;
    }
}

/* ===== ALERTS ===== */
.alert {
    border-radius: 8px;
    border: 1px solid;
    margin-bottom: 1.25rem;
    padding: 0.875rem;
    font-size: 0.875rem;
    backdrop-filter: blur(5px);
    background-color: rgba(255, 255, 255, 0.9);
}

.alert-danger {
    background-color: rgba(254, 242, 242, 0.9);
    border-color: #fee2e2;
    color: #991b1b;
}

.alert-success {
    background-color: rgba(240, 253, 244, 0.9);
    border-color: #dcfce7;
    color: #166534;
}

/* ===== FORM ELEMENTS ===== */
.auth-form {
    margin-top: 1rem;
}

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

.input-group {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

.input-group:focus-within {
    border-color: var(--text-hover);
    box-shadow: 0 0 0 2px rgba(0, 153, 255, 0.1);
}

.input-group-text {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    color: #6c757d;
    padding: 0 1rem;
    min-width: 45px;
}

.form-control {
    border: none;
    padding: 0.75rem;
    color: var(--text-primary);
    background-color: transparent;
    font-size: 1rem;
}

.form-control:focus {
    box-shadow: none;
    background-color: transparent;
}

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

/* ===== BUTTONS ===== */
.auth-btn {
    width: 100%;
    background: var(--text-primary);
    color: white;
    border: none;
    padding: 0.875rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
    margin-top: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.auth-btn:hover {
    background: var(--text-hover);
    color: white;
    transform: translateY(-1px);
}

/* ===== AUTH FOOTER ===== */
.auth-footer {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.auth-link {
    color: var(--text-hover) !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    margin-left: 0.25rem;
}

.auth-link:hover {
    color: #0077cc !important;
    text-decoration: underline;
}

/* ===== VALIDATION ===== */
.invalid-feedback {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
    color: #dc3545;
}

.is-invalid {
    border-color: #dc3545 !important;
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 576px) {
    .auth-card {
        padding: 1.5rem;
    }

    .auth-logo img {
        height: 45px;
    }
}