/* ===== Lotus11n Theme - Green, White, Yellow ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary-green: #2d7a5f;
    --dark-green: #1a5c42;
    --light-green: #3a9975;
    --primary-yellow: #f0c528;
    --dark-yellow: #d4ad1a;
    --light-yellow: #f5d65e;
    --white: #ffffff;
    --off-white: #f5f7f6;
    --light-gray: #e8ece9;
    --text-dark: #1a2e25;
    --text-muted: #5a6e63;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.08);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 50%, #145038 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-dark);
}

/* ===== Background Pattern ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(240, 197, 40, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(240, 197, 40, 0.06) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* ===== Page Wrapper ===== */
.page-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Header / Navbar ===== */
.navbar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.navbar-brand .logo {
    height: 42px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.navbar-brand .brand-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 1px;
}

.navbar-brand .brand-text span {
    color: var(--primary-yellow);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-right .logo-right {
    height: 38px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.nav-link.active {
    background: var(--primary-yellow);
    color: var(--text-dark);
    font-weight: 600;
}

.nav-btn {
    background: var(--primary-yellow);
    color: var(--text-dark);
    padding: 8px 24px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    border: 2px solid var(--primary-yellow);
}

.nav-btn:hover {
    background: var(--light-yellow);
    border-color: var(--light-yellow);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(240, 197, 40, 0.4);
}

.nav-btn.outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.nav-btn.outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* ===== Main Content ===== */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

/* ===== Card ===== */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 48px 40px;
    width: 100%;
    max-width: 460px;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-yellow), var(--primary-green));
}

.card-logo {
    text-align: center;
    margin-bottom: 8px;
}

.card-logo img {
    height: 50px;
    width: auto;
}

.card-title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.card-subtitle {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* ===== Tab Toggle ===== */
.tab-toggle {
    display: flex;
    background: var(--off-white);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 28px;
    gap: 4px;
}

.tab-toggle button {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    background: transparent;
    color: var(--text-muted);
}

.tab-toggle button.active {
    background: var(--primary-green);
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(45, 122, 95, 0.3);
}

.tab-toggle button:not(.active):hover {
    background: var(--light-gray);
    color: var(--text-dark);
}

/* ===== Form ===== */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.form-group .input-wrapper {
    position: relative;
}

.form-group .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    pointer-events: none;
}

.form-group input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    transition: var(--transition);
    background: var(--off-white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-green);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(45, 122, 95, 0.1);
}

.form-group input::placeholder {
    color: #a0b0a6;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: var(--white);
    width: 100%;
    box-shadow: 0 4px 20px rgba(45, 122, 95, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(45, 122, 95, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-yellow {
    background: linear-gradient(135deg, var(--primary-yellow), var(--dark-yellow));
    color: var(--text-dark);
    width: 100%;
    box-shadow: 0 4px 20px rgba(240, 197, 40, 0.35);
}

.btn-yellow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(240, 197, 40, 0.45);
}

.btn-small {
    padding: 8px 18px;
    font-size: 13px;
    width: auto;
}

/* ===== Links ===== */
.form-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-muted);
}

.form-footer a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.form-footer a:hover {
    color: var(--dark-green);
    text-decoration: underline;
}

/* ===== Messages ===== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}

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

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.alert-error {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.alert-info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

/* ===== Success Modal ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    width: 90%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.3s ease;
    text-align: center;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: var(--white);
    box-shadow: 0 8px 25px rgba(45, 122, 95, 0.35);
}

.modal h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.modal p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ===== Credential Box ===== */
.credential-box {
    background: var(--off-white);
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.credential-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
}

.credential-item:last-child {
    border-bottom: none;
}

.credential-item .label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.credential-item .value {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-green);
    font-family: 'Courier New', monospace;
}

.copy-btn {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.copy-btn:hover {
    background: var(--dark-green);
    transform: translateY(-1px);
}

.copy-btn.copied {
    background: var(--primary-yellow);
    color: var(--text-dark);
}

/* ===== Dashboard ===== */
.dashboard-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.dashboard-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 60px 50px;
    text-align: center;
    max-width: 550px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-yellow), var(--primary-green));
}

.dashboard-card .logo-large {
    height: 70px;
    margin-bottom: 24px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    border: 2px solid #a5d6a7;
    border-radius: 50px;
    padding: 14px 32px;
    margin-top: 20px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4caf50;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
}

.status-text {
    font-size: 18px;
    font-weight: 700;
    color: #2e7d32;
    letter-spacing: 0.5px;
}

.welcome-text {
    font-size: 16px;
    color: var(--text-muted);
    margin-top: 16px;
}

.welcome-text strong {
    color: var(--primary-green);
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 16px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 400;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .card {
        padding: 28px 18px;
        margin: 0 8px;
        border-radius: 12px;
    }

    .card-title {
        font-size: 22px;
    }

    .card-subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .card-logo img {
        height: 40px;
    }

    .dashboard-card {
        padding: 32px 18px;
        margin: 0 8px;
        border-radius: 12px;
    }

    .dashboard-card .logo-large {
        height: 50px;
        margin-bottom: 16px;
    }

    .dashboard-card h1 {
        font-size: 22px !important;
    }

    .status-badge {
        padding: 10px 20px;
    }

    .status-text {
        font-size: 14px;
    }

    .welcome-text {
        font-size: 14px;
    }

    .main-content {
        padding: 20px 10px;
    }

    .dashboard-content {
        padding: 20px 10px;
    }

    /* Navbar mobile */
    .navbar {
        padding: 8px 0;
    }

    .navbar .container {
        padding: 0 12px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .navbar-brand .logo {
        height: 32px;
    }

    .navbar-brand .brand-text {
        font-size: 18px;
    }

    .navbar-right {
        gap: 8px;
    }

    .navbar-right .logo-right {
        height: 28px;
    }

    .navbar-right span {
        font-size: 12px !important;
    }

    .nav-btn {
        padding: 5px 12px;
        font-size: 11px;
        border-width: 1.5px;
    }

    /* Form mobile */
    .form-group {
        margin-bottom: 14px;
    }

    .form-group input {
        padding: 10px 14px 10px 36px;
        font-size: 13px;
    }

    .form-group .input-icon {
        left: 12px;
        font-size: 14px;
    }

    .form-group label {
        font-size: 12px;
    }

    .tab-toggle {
        margin-bottom: 20px;
    }

    .tab-toggle button {
        padding: 8px 10px;
        font-size: 12px;
    }

    .btn {
        padding: 11px 20px;
        font-size: 14px;
    }

    /* Modal mobile */
    .modal {
        padding: 24px 18px;
        margin: 0 12px;
        border-radius: 12px;
    }

    .modal-icon {
        width: 56px;
        height: 56px;
        font-size: 26px;
    }

    .modal h3 {
        font-size: 18px;
    }

    .modal p {
        font-size: 13px;
    }

    .credential-box {
        padding: 14px;
    }

    .credential-item .value {
        font-size: 14px;
    }

    .credential-item .label {
        font-size: 11px;
    }

    /* Footer mobile */
    .footer {
        padding: 12px;
        font-size: 11px;
    }
}

/* Extra small screens */
@media (max-width: 380px) {
    .card {
        padding: 22px 14px;
    }

    .card-title {
        font-size: 20px;
    }

    .navbar-brand .logo {
        height: 28px;
    }

    .navbar-right .logo-right {
        display: none;
    }

    .form-group input {
        padding: 9px 12px 9px 34px;
        font-size: 12px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* ===== Toggle Password ===== */
.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    font-size: 16px;
    transition: var(--transition);
    background: none;
    border: none;
    padding: 4px;
}

.toggle-password:hover {
    color: var(--primary-green);
}

/* ===== Decorative Elements ===== */
.decoration-dots {
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, var(--primary-yellow) 2px, transparent 2px);
    background-size: 12px 12px;
    opacity: 0.3;
}

.decoration-dots.top-right {
    top: 20px;
    right: 20px;
}

.decoration-dots.bottom-left {
    bottom: 20px;
    left: 20px;
}
