/* =============================================
   LOGIN PAGE — Premium Redesign
   Theme: #151c2c (Dark Navy)
   ============================================= */

/* ---- Base ---- */
.app-wrapper {
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    background: #ffffff;
}

/* ---- Hero Section ---- */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
}

/* Gradient fade-out bottom of hero */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent 0%, #ffffff 100%);
    pointer-events: none;
}

/* ---- Form Card ---- */
.form-login {
    margin-top: -30px;
    background: #ffffff;
    border-radius: 28px 28px 0 0;
    padding: 10px 20px 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 -6px 32px rgba(21, 28, 44, 0.08);

    /* Fade + slide up animation */
    animation: slideUp 0.4s cubic-bezier(0.22, 0.68, 0, 1.2) both;
}

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

/* ---- Heading ---- */
.form-login h5 {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
    color: #151c2c;
    letter-spacing: -0.3px;
}

/* Decorative teal line under heading */
.form-login h5::after {
    content: '';
    display: block;
    width: 32px;
    height: 3px;
    background: linear-gradient(90deg, #151c2c, #1a2433);
    border-radius: 999px;
    margin: 8px auto 20px;
}

/* ---- Input Group ---- */
.input-group {
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.25s ease;
    box-shadow: 0 2px 10px rgba(21, 28, 44, 0.07);
}

.input-group:focus-within {
    box-shadow: 0 0 0 2.5px rgba(21, 28, 44, 0.30),
                0 4px 16px rgba(21, 28, 44, 0.12);
}

.input-group-text {
    background: #f2fafa;
    border: 1.5px solid #e8f5f5;
    border-right: 0;
    border-radius: 14px 0 0 14px;
    padding: 0.5rem 0.85rem;
    transition: background 0.2s;
}

.input-group:focus-within .input-group-text {
    background: #e4f6f5;
}

.form-login i {
    color: #151c2c;
    font-size: 18px;
}

.form-control {
    background: #f2fafa;
    border: 1.5px solid #e8f5f5;
    border-left: 0;
    border-radius: 0 14px 14px 0;
    height: 50px;
    font-size: 14px;
    color: #151c2c;
    transition: background 0.2s;
}

.form-control::placeholder {
    color: #a8bfbe;
    font-size: 13.5px;
}

.form-control:focus {
    background: #e4f6f5;
    box-shadow: none;
    outline: none;
    border-color: #e8f5f5;
}

.toggle-password {
    cursor: pointer;
    background: #f2fafa;
    border: 1.5px solid #e8f5f5;
    border-left: 0;
    border-radius: 0 14px 14px 0;
    transition: background 0.2s;
}

.input-group:focus-within .toggle-password {
    background: #e4f6f5;
}

/* ---- Lupa Password ---- */
.btn.btn-link[data-bs-target="#forgot_pass"] {
    font-size: 12.5px !important;
    font-weight: 500;
    color: #151c2c !important;
    transition: opacity 0.2s;
}

.btn.btn-link[data-bs-target="#forgot_pass"]:hover {
    opacity: 0.7;
    color: #151c2c !important;
}

/* ---- Submit Button ---- */
.btn-submit {
    height: 52px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.2px;
    background: linear-gradient(135deg, #151c2c 0%, #1a2433 100%);
    border: none;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(21, 28, 44, 0.38),
                0 1px 4px rgba(21, 28, 44, 0.2);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.2s;
    position: relative;
    overflow: hidden;
}

/* Shimmer ripple on button */
.btn-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
        transparent 20%, rgba(255,255,255,0.18) 50%, transparent 80%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn-submit:hover::after {
    transform: translateX(100%);
}

.btn-submit:hover {
    filter: brightness(1.06);
    box-shadow: 0 10px 28px rgba(21, 28, 44, 0.45);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(21, 28, 44, 0.30);
    color: #ffffff;
}

/* ---- Modal ---- */
.modal-content {
    border-radius: 24px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid #f0f7f7;
    padding: 18px 20px 14px;
}

.modal-header .modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #151c2c;
}

.modal-body {
    padding: 20px 20px 8px;
}

.modal-body .form-label {
    font-size: 13px;
    font-weight: 600;
    color: #4a6664;
}

.modal-body .form-control {
    border: 1.5px solid #e8f5f5 !important;
    border-radius: 12px !important;
    border-left: 1.5px solid #e8f5f5 !important;
    background: #f2fafa;
    height: 46px;
    font-size: 14px;
    box-shadow: none;
}

.modal-body .form-control:focus {
    border-color: #151c2c !important;
    box-shadow: 0 0 0 3px rgba(21, 28, 44, 0.15) !important;
}

.modal-footer {
    border-top: 1px solid #f0f7f7;
    padding: 14px 20px 18px;
    gap: 10px;
}

.modal-footer .btn-outline-secondary {
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 500;
    padding: 8px 20px;
    border-color: #d0d0d0;
    color: #666;
}

.modal-footer .btn-warning {
    background: linear-gradient(135deg, #151c2c 0%, #1a2433 100%);
    border: none;
    color: #fff;
    border-radius: 999px;
    padding: 8px 24px;
    font-weight: 600;
    font-size: 13.5px;
    box-shadow: 0 4px 14px rgba(21, 28, 44, 0.35);
    transition: filter 0.2s, transform 0.15s;
}

.modal-footer .btn-warning:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    color: #fff;
}

/* ---- Alert ---- */
.alert-danger {
    border-radius: 12px;
    font-size: 13px;
    background: #fff2f2;
    border-color: #ffd0d0;
    color: #c0392b;
}

.alert-success {
    border-radius: 12px;
    font-size: 13px;
    background: #f0fdf6;
    border-color: #bbf0d4;
    color: #1a7a4a;
}

/* ---- Bottom fixed area ---- */
.bottom-fixed {
    bottom: 0;
    width: 100%;
    max-width: 480px;
    background: white;
    padding: 12px 16px 16px;
    z-index: 99;
}
