/* Shared Auth Styles */

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../../images/assets/bg_medayuagung_1.webp');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

:root { --radius: 14px; }

.auth-form-light {
    background: #ffffff;
    padding: 2rem 1.75rem 1.75rem 1.75rem;
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
    position: relative;
    text-align: center;
    backdrop-filter: saturate(140%) blur(2px);
}

.auth-form-light h2 {
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-size: 1.75rem;
    color: #1f2937;
    letter-spacing: .2px;
}

.brand-logo {
    margin-bottom: 20px;
    text-align: center;
}

.brand-logo img {
    max-width: 80px;
    height: auto;
}

.form-group {
    margin-bottom: 1.25rem;
    width: 100%;
}

.input-group {
    display: flex;
    align-items: center;
    border: 1px solid #d8dee6;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group:focus-within {
    border-color: #0F8EC8;
    box-shadow: 0 0 0 3px rgba(15, 142, 200, 0.15);
}

.input-group-text { background-color: #eef2f6; border: none; padding: 0.75rem 1rem; color: #495057; }

.toggle-password {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    flex: 0 0 44px;
    min-width: 44px;
}

.form-control-lg {
    border: none;
    box-shadow: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    height: auto;
    flex: 1 1 auto;
    min-width: 0;
}

.form-control-lg:focus { outline: none; }

.auth-form-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 12px;
    margin-top: 1.25rem;
    background-color: #0F8EC8;
    border: 1px solid #0F8EC8;
    color: #ffffff;
    transition: all 0.3s ease;
    display: block;
    cursor: pointer;
    font-weight: 500;
}

.auth-form-btn:hover {
    background-color: #0E7CB3;
    border-color: #0E7CB3;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.close-icon { position: absolute; top: 12px; right: 12px; font-size: 1.25rem; color: #9ca3af; text-decoration: none; }
.close-icon:hover { color: #111827; }

.text-danger {
    color: #dc3545;
    font-size: 0.875rem;
    text-align: left;
    margin-top: 0.5rem;
}

/* Flash messages (auth only) */
.flash-container-auth {
    position: fixed;
    top: calc(18px + env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 2030;
    display: grid;
    gap: 10px;
    justify-items: center;
    align-items: start;
    width: auto;
    max-width: min(92vw, 520px);
}
.flash {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.08);
    width: fit-content;
    min-width: 240px;
    max-width: 100%;
    line-height: 1.45;
    font-size: 0.95rem;
    transform: translateY(-10px);
    opacity: 0;
    animation: flash-in-down 220ms ease-out forwards;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    backdrop-filter: saturate(150%) blur(6px);
}
.flash-success { background: #57B657; border: 1px solid #57B657; color: #fff; }
.flash-error { background: #FF4747; border: 1px solid #FF4747; color: #fff; }
.flash-body { flex: 1 1 auto; text-align: center; }
@keyframes flash-in-down { from { transform: translateY(-10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes flash-out { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-8px); opacity: 0; } }

/* Responsive */
@media (max-width: 480px) {
    .flash { min-width: auto; width: auto; margin: 0 12px; padding: 10px 14px; font-size: 0.9rem; border-radius: 10px; box-sizing: border-box; }
    .flash-container-auth { left: 0; right: 0; transform: none; max-width: none; width: 100%; padding: 0; gap: 8px; }
    .auth-form-light { max-width: 94%; padding: 1.25rem 1rem 1rem 1rem; }
    .auth-form-light h2 { font-size: 1.35rem; margin-bottom: 0.9rem; }
    .brand-logo img { max-width: 60px; }
    .form-group { margin-bottom: 1rem; }
    .input-group-text { padding: 0.6rem 0.75rem; font-size: 0.95rem; }
    .form-control-lg { padding: 0.6rem 0.75rem; font-size: 0.95rem; }
    .toggle-password { padding: 0.6rem 0.75rem; }
    .auth-form-btn { font-size: 0.95rem; padding: 0.7rem 1rem; margin-top: 1rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .flash { width: auto; margin: 0 12px; padding: 12px 16px; box-sizing: border-box; }
    .flash-container-auth { left: 16px; right: 16px; transform: none; max-width: none; width: auto; }
}


