* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ff6a00 0%, #fff0e0 50%, #ff8c00 100%);
    background-size: 300% 300%;
    animation: bgShift 8s ease infinite;
    min-height: 100vh;
    overflow-x: hidden;
}

@keyframes bgShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* FLOATING BUBBLES */
.bubbles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -200px;
    border-radius: 50%;
    background: rgba(255, 200, 50, 0.18);
    animation: floatUp linear infinite;
}

.bubble:nth-child(1) { width: 120px; height: 120px; left: 8%;  animation-duration: 9s;  animation-delay: 0s; }
.bubble:nth-child(2) { width: 70px;  height: 70px;  left: 22%; animation-duration: 7s;  animation-delay: 1.5s; }
.bubble:nth-child(3) { width: 180px; height: 180px; left: 45%; animation-duration: 11s; animation-delay: 3s; }
.bubble:nth-child(4) { width: 90px;  height: 90px;  left: 63%; animation-duration: 8s;  animation-delay: 0.8s; }
.bubble:nth-child(5) { width: 55px;  height: 55px;  left: 78%; animation-duration: 6s;  animation-delay: 2s; }
.bubble:nth-child(6) { width: 140px; height: 140px; left: 88%; animation-duration: 10s; animation-delay: 4s; }

@keyframes floatUp {
    0%   { transform: translateY(0) scale(1);   opacity: 0.6; }
    50%  { transform: translateY(-50vh) scale(1.05); opacity: 0.4; }
    100% { transform: translateY(-110vh) scale(1); opacity: 0; }
}

/* PAGE WRAPPER */
.page-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hidden {
    display: none !important;
}

/* LOGIN CARD */
.card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 24px;
    padding: clamp(28px, 6vw, 50px) clamp(24px, 5vw, 44px);
    width: 100%;
    max-width: 420px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25), 0 4px 16px rgba(255, 100, 0, 0.2);
    animation: cardIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.card-logo {
    width: clamp(56px, 14vw, 80px);
    height: clamp(56px, 14vw, 80px);
    object-fit: cover;
    border-radius: 14px;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(255, 100, 0, 0.2);
}

.card-title {
    text-align: left;
    font-size: clamp(14px, 3vw, 18px);
    font-weight: 900;
    color: #ff4500;
    letter-spacing: 0.5px;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(255, 100, 0, 0.15);
}

.card-subtitle {
    display: block;
    font-size: clamp(11px, 2.2vw, 14px);
    font-weight: 600;
    color: #e06000;
    letter-spacing: 0.3px;
    margin-top: 3px;
}

/* INPUT GROUPS */
.input-group {
    position: relative;
    margin-bottom: 18px;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #bbb;
    pointer-events: none;
}

.input-group input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 2px solid #f0e0d0;
    border-radius: 50px;
    font-size: clamp(13px, 2.5vw, 15px);
    background: #fff8f4;
    color: #333;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.input-group input::placeholder {
    color: #bbb;
}

.toggle-pw-text {
    background: none;
    border: none;
    cursor: pointer;
    color: #ff6a00;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 0;
    margin-top: 6px;
    margin-bottom: 2px;
    text-align: left;
    display: block;
    transition: opacity 0.2s;
}

.toggle-pw-text:hover {
    opacity: 0.7;
}

.input-group input:focus {
    border-color: #ff6a00;
    box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.12);
    background: #fff;
}

.forgot {
    text-align: right;
    font-size: 12px;
    color: #ff6a00;
    margin-bottom: 22px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.forgot:hover { opacity: 0.7; }

/* DYNAMIC ISLAND BUTTON */
.dynamic-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition:
        transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.18s ease,
        border-radius 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.3s ease;
    will-change: transform;
    position: relative;
    overflow: hidden;
}

.dynamic-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    opacity: 0;
    transition: opacity 0.2s;
    border-radius: inherit;
}

.dynamic-btn:hover {
    transform: scale(1.06);
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(255, 80, 0, 0.45);
}

.dynamic-btn:hover::after {
    opacity: 1;
}

.dynamic-btn:active {
    transform: scale(0.93);
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(255, 80, 0, 0.3);
}

/* LOGIN BUTTON */
.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ffb300 0%, #ff4500 100%);
    color: white;
    font-size: clamp(14px, 2.5vw, 16px);
    text-align: center;
    box-shadow: 0 6px 20px rgba(255, 80, 0, 0.4);
    margin: 0 auto;
}

.error-message {
    color: #e74c3c;
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    display: none;
}

.error-message.show {
    display: block;
}

/* NAVBAR */
.navbar {
    width: 100%;
    max-width: 1200px;
    background: linear-gradient(135deg, #ff8c00 0%, #ff5500 100%);
    backdrop-filter: blur(10px);
    padding: clamp(14px, 3vw, 20px) clamp(20px, 5vw, 40px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    margin-bottom: 24px;
}

.navbar h1 {
    font-size: clamp(16px, 3vw, 24px);
    font-weight: 800;
    letter-spacing: 0.5px;
}

.btn-logout {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-logout:hover {
    background: rgba(255,255,255,0.4);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* DASHBOARD */
.content {
    width: 100%;
    max-width: 1200px;
    padding: clamp(10px, 3vw, 20px);
}

.dashboard-title {
    color: white;
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 900;
    text-align: center;
    margin-bottom: 28px;
    letter-spacing: 1px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: clamp(14px, 3vw, 24px);
}

.nav-button {
    background: rgba(255, 255, 255, 0.95);
    padding: clamp(22px, 4vw, 36px) clamp(16px, 3vw, 24px);
    border-radius: 24px;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    flex-direction: column;
}

.nav-button:hover {
    transform: scale(1.06) translateY(-4px);
    box-shadow: 0 16px 40px rgba(255, 80, 0, 0.35);
    border-radius: 18px;
}

.nav-button:active {
    transform: scale(0.94);
    border-radius: 24px;
}

.button-icon {
    font-size: clamp(36px, 6vw, 52px);
    margin-bottom: 12px;
    display: block;
}

.button-text {
    color: #ff4500;
    font-size: clamp(14px, 2.5vw, 18px);
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .card {
        border-radius: 18px;
    }

    .navbar {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .button-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
