/* public/css/auth/app.css */

body.auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: "Nunito", sans-serif;
    background: linear-gradient(rgba(20, 20, 20, 0.45), rgba(20, 20, 20, 0.45)),
        linear-gradient(135deg, #3d105f, #5e1992, #8e3cac);
    background-attachment: fixed;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-navbar {
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-logo-wrap {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.brand-logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-top {
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    display: block;
}

.brand-text small {
    color: #e8d6f4;
    font-size: 12px;
}

.auth-link {
    color: #fff !important;
    font-weight: 700;
}

.btn-home-nav {
    background: #ffffff;
    color: #5e1992 !important;
    border-radius: 12px;
    padding: 10px 18px !important;
    font-weight: 800;
}

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px 15px;
}

.brand-logo-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.brand-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

body.auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: "Nunito", sans-serif;

    /* fallback kalau branding kosong */
    background: linear-gradient(rgba(20, 20, 20, 0.45), rgba(20, 20, 20, 0.45)),
        linear-gradient(135deg, #3d105f, #5e1992, #8e3cac);

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* mobile burger menu */
@media (max-width: 991px) {
    .auth-navbar .navbar-collapse {
        margin-top: 14px;
        padding: 14px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.16);
    }

    .auth-navbar .navbar-nav {
        gap: 10px;
    }

    .auth-navbar .nav-link {
        padding: 12px 14px !important;
        border-radius: 12px;
        text-align: center;
    }

    .auth-link {
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff !important;
    }

    .btn-home-nav {
        width: 100%;
        text-align: center;
    }

    .navbar-toggler {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.12);
    }
}

.auth-navbar {
    animation: slideDown 0.7s ease;
}

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

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card,
.register-card,
.auth-card,
.forgot-card {
    animation: zoomFade 0.8s ease;
}

@keyframes zoomFade {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.btn-login:hover,
.btn-register:hover,
.btn-main:hover,
.btn-home-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
    transition: 0.25s ease;
}

@media (max-width: 576px) {
    .login-card,
    .register-card,
    .forgot-card,
    .auth-card {
        padding: 24px;
        border-radius: 20px;
    }

    .login-header h2,
    .register-header h2,
    .auth-head h2,
    .forgot-header h2 {
        font-size: 24px;
    }

    .brand-top {
        font-size: 13px;
    }

    .brand-text small {
        font-size: 11px;
    }

    .auth-main {
        padding: 18px 12px;
    }
}

.auth-footer {
    margin-top: auto;
    padding: 34px 0;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 28px;
}

.footer-brand h5,
.footer-contact h6,
.footer-info h6,
.footer-copy h6 {
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 14px;
    font-size: 16px;
}

.footer-brand p,
.footer-contact p,
.footer-info p,
.footer-copy p {
    color: #eee3f7;
    margin: 0;
    line-height: 1.8;
    font-size: 14px;
}

.footer-contact span {
    display: block;
    color: #ffffff;
    font-size: 13px;
    margin-top: 8px;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        text-align: center;
    }
}

.auth-footer {
    margin-top: auto;
    padding: 34px 0;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);

    animation: footerFadeUp 1s ease;
}

.footer-brand,
.footer-contact,
.footer-info,
.footer-copy {
    animation: footerItemUp 0.9s ease;
    animation-fill-mode: both;
}

.footer-brand {
    animation-delay: 0.1s;
}
.footer-contact {
    animation-delay: 0.25s;
}
.footer-info {
    animation-delay: 0.4s;
}
.footer-copy {
    animation-delay: 0.55s;
}

@keyframes footerFadeUp {
    from {
        opacity: 0;
        transform: translateY(35px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes footerItemUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* hover halus */
.footer-brand,
.footer-contact,
.footer-info,
.footer-copy {
    transition: 0.25s ease;
}

.footer-brand:hover,
.footer-contact:hover,
.footer-info:hover,
.footer-copy:hover {
    transform: translateY(-4px);
}

/* mobile tetap halus */
@media (max-width: 991px) {
    .footer-brand,
    .footer-contact,
    .footer-info,
    .footer-copy {
        animation: none;
    }

    .auth-footer {
        animation: footerFadeUp 0.8s ease;
    }
}
