/* Green & Blue themed UI, auth + dashboards */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #0f9b0f, #00a4ff);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #0b2240;
}

a {
    color: #0071ff;
}

.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 15px 60px;
}

.footer {
    text-align: center;
    padding: 12px 10px;
    font-size: 13px;
    color: #e6f5ff;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(6px);
}

/* Auth card */
.auth-card {
    width: 100%;
    max-width: 950px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
}

@media (max-width: 780px) {
    .auth-card {
        grid-template-columns: 1fr;
    }
    .auth-side-panel {
        display: none;
    }
}

.auth-main {
    padding: 32px 40px;
}

.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    color: #0c5f2e;
}

.brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: radial-gradient(circle at 0 0, #00ff9d, #008cff);
}

.toggle-buttons {
    display: inline-flex;
    padding: 3px;
    border-radius: 999px;
    background: #e1f5ff;
}

.toggle-buttons button {
    border: none;
    background: transparent;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 999px;
    cursor: pointer;
    color: #0b2240;
    transition: all .2s ease;
}

.toggle-buttons button.active {
    background: linear-gradient(135deg, #0f9b0f, #00a4ff);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.8);
}

.auth-tabs {
    position: relative;
}

.auth-form {
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: all .25s ease;
    position: absolute;
    inset: 0;
}

.auth-form.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    position: relative;
}

.auth-form h2 {
    margin-bottom: 6px;
    font-size: 22px;
}

.auth-form p {
    margin-bottom: 20px;
    font-size: 13px;
    color: #506480;
}

.input-group {
    margin-bottom: 14px;
}

.input-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #26405e;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #b6d3ea;
    padding: 9px 11px;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #00a4ff;
    box-shadow: 0 0 0 1px rgba(0,164,255,0.25);
}

.btn-primary {
    width: 100%;
    padding: 10px 14px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #0f9b0f, #00a4ff);
    box-shadow: 0 10px 20px rgba(0, 164, 255, 0.35);
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.btn-primary:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 164, 255, 0.4);
}

.helper-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 12px;
}

.helper-row a {
    color: #0071ff;
    text-decoration: none;
}

.helper-row a:hover {
    text-decoration: underline;
}

.alert {
    padding: 8px 10px;
    font-size: 13px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.alert-success {
    background: #e2f7ea;
    color: #14552b;
    border: 1px solid #99e0b3;
}

.alert-error {
    background: #ffe7e7;
    color: #7a1f26;
    border: 1px solid #f5a4a4;
}

/* Right side panel */
.auth-side-panel {
    background: radial-gradient(circle at top left, #00ff9d 0, #00a4ff 40%, #004aad 100%);
    color: #fff;
    padding: 30px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-side-panel h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.auth-side-panel p {
    font-size: 13px;
    opacity: 0.95;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.26);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    margin-bottom: 14px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #00ff9d;
}

/* Dashboard layout */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 6px 20px rgba(0,0,0,0.09);
}

.topbar-title {
    font-weight: 700;
    color: #0c5f2e;
}

.topbar-user {
    font-size: 13px;
    color: #335;
}

.main {
    padding: 22px 20px 40px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.card {
    background: rgba(255,255,255,0.96);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.07);
}

.card-title {
    font-size: 13px;
    color: #506480;
    margin-bottom: 5px;
}

.card-value {
    font-size: 22px;
    font-weight: 700;
    color: #0b2240;
}

.badge-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    background: #e2f7ea;
    color: #0c5f2e;
}
