/* static/css/login.css */

/* ===== RESET UNTUK LOGIN PAGE ===== */
body {
    margin: 0;
    padding: 0;
    height: 100%;
    /*overflow: hidden;
    Hilangkan scroll */
}

/* ===== LOGIN PAGE BACKGROUND ===== */
.login-page {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;

    /* ✅ Background image full */
    background-image: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /*background-attachment: fixed;*/
    transition: background-image 0.8s ease;

    margin: 0;
    padding: 0;
}

.login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.login-page .container {
    position: relative;
    z-index: 1;
    padding: 20px;
    max-width: 100% !important;
}

/* ===== LOGIN CARD ===== */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    width: 100%;
    max-width: 380px;
}

.login-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 16px 24px;
}

.login-card .card-header h4 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.1rem;
}

.login-card .card-header small {
    opacity: 0.85;
    font-size: 0.75rem;
}

.login-card .card-body {
    padding: 24px;
}

/* ===== FORM ===== */
.login-card .form-control {
    border-radius: 6px;
    padding: 8px 14px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.login-card .form-label {
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.login-card .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.login-card .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.login-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 576px) {
    .login-card {
        max-width: 340px;
    }

    .login-card .card-body {
        padding: 20px;
    }

    .login-card .card-header {
        padding: 16px 20px;
    }

    .login-card .card-header h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 400px) {
    .login-card .card-header h4 {
        font-size: 1rem;
        flex-wrap: wrap;
    }

    .login-card .card-header h4 img {
        height: 28px;
    }
}

/* ===== PHOTO CREDIT - Pojok Kanan Bawah ===== */
.photo-credit {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    user-select: none;
}

.photo-credit:hover {
    background: rgba(0, 0, 0, 0.75);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.photo-credit .credit-icon {
    font-size: 13px;
    opacity: 0.7;
}

.photo-credit .credit-author {
    font-weight: 500;
}

.photo-credit .credit-author a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s;
}

.photo-credit .credit-author a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.photo-credit .credit-divider {
    opacity: 0.3;
}

.photo-credit .credit-likes {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 576px) {
    .photo-credit {
        bottom: 12px;
        right: 12px;
        left: 12px;
        padding: 5px 12px;
        font-size: 10px;
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 12px;
        gap: 6px;
    }

    .photo-credit .credit-likes {
        font-size: 10px;
    }

    .photo-credit .credit-source {
        font-size: 10px;
    }
}

@media (max-width: 400px) {
    .photo-credit {
        font-size: 9px;
        padding: 4px 10px;
        gap: 4px;
    }
}