* {
    box-sizing: border-box;
}
html {
    font-size: clamp(15px, 1vw + 0.75rem, 19px);
}
body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f6fbf8;
    color: #1d3a2e;
    font-size: clamp(1rem, 0.9vw + 0.9rem, 1.05rem);
    line-height: 1.7;
}
body,
button,
input,
textarea,
select,
a,
.page-shell,
.dashboard-shell,
.auth-shell {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
h1 { font-size: clamp(1.9rem, 2.4vw + 0.9rem, 3rem); }
h2 { font-size: clamp(1.4rem, 1.6vw + 0.8rem, 2.2rem); }
h3 { font-size: clamp(1.1rem, 1.1vw + 0.8rem, 1.45rem); }
p, li, label, input, textarea, select, button, a { font-size: inherit; }
img, video, iframe, embed, object, svg {
    display: block;
    max-width: 100%;
    height: auto;
}
img {
    object-fit: cover;
}

/* Force light mode regardless of OS/browser dark theme */
:root {
    color-scheme: light;
    supported-color-schemes: light;
}
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: light;
        supported-color-schemes: light;
    }
    body {
        background: #f6fbf8;
        color: #1d3a2e;
    }
}
.page-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}
.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: center;
    padding: 64px 0;
}
.eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    color: #3f7d64;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.hero h1 {
    margin: 0;
    font-size: clamp(3rem, 4vw, 4.5rem);
    line-height: 1;
}
.hero p {
    max-width: 560px;
    font-size: inherit;
    margin: 24px 0;
    color: #385447;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.button:hover {
    transform: translateY(-2px);
}
.ion-button {
    gap: 10px;
    padding-left: 20px;
    padding-right: 20px;
}
.ion-btn-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.primary {
    background: #1f704c;
    color: #fff;
    box-shadow: 0 16px 30px rgba(31, 112, 76, 0.2);
}
.secondary {
    background: rgba(31, 112, 76, 0.08);
    color: #1f704c;
    border: 1px solid rgba(31, 112, 76, 0.25);
}
.dashboard-shell {
    min-height: 100vh;
    padding: 32px;
    background: linear-gradient(135deg, #f8fdf9 0%, #eff8f2 100%);
}
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1120px;
    margin: 0 auto 24px;
    background: #ffffff;
    padding: 24px 28px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(42, 68, 59, 0.08);
}
.dashboard-header h1 {
    margin: 8px 0 6px;
    font-size: clamp(1.7rem, 2.4vw, 2.4rem);
}
.dashboard-header p {
    margin: 0;
    color: #4f695b;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 1120px;
    margin: 0 auto;
}
.dashboard-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(42, 68, 59, 0.08);
}
.hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    grid-column: span 2;
    background: linear-gradient(135deg, #1f704c 0%, #2d8f5d 100%);
    color: #fff;
}
.hero-card p,
.hero-card h2 {
    color: #fff;
}
.stat-card {
    text-align: left;
}
.stat-card h3 {
    margin: 0 0 8px;
    color: #1f704c;
}
.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: #153626;
}
.stat-card span {
    color: #4f695b;
}
.hero-visual {
    min-height: clamp(220px, 35vw, 380px);
    border-radius: 28px;
    background: linear-gradient(135deg, #effbf4 0%, #f9fdfb 100%);
    box-shadow: inset 0 0 0 1px rgba(31, 112, 76, 0.08);
    position: relative;
    overflow: hidden;
}
.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-badge {
    position: absolute;
    left: 20px;
    bottom: 20px;
    background: rgba(255,255,255,0.92);
    color: #1f704c;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(31, 112, 76, 0.16);
}
.image-showcase {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 24px 0 64px;
}
.image-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(42, 68, 59, 0.08);
}
.image-card img {
    width: 100%;
    height: clamp(180px, 24vw, 240px);
    object-fit: cover;
    display: block;
}
.image-card h3 {
    margin: 16px 20px 20px;
    color: #1f704c;
}
.overview-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 64px;
}
.card {
    background: #fff;
    padding: 28px;
    border-radius: 24px;
    box-shadow: 0 24px 48px rgba(42, 68, 59, 0.08);
}
.card h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.25rem;
}
.card p {
    margin: 0;
    color: #4f695b;
    line-height: 1.7;
    font-size: inherit;
}
.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 16px;
    background: linear-gradient(135deg, #f6fbf8 0%, #eef8f2 100%);
}
.auth-card {
    width: min(100%, 380px);
    background: #ffffff;
    padding: 18px 16px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(42, 68, 59, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.auth-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 28px 58px rgba(42, 68, 59, 0.16);
}
.auth-card h1 {
    margin: 0 0 5px;
    font-size: clamp(1.2rem, 0.95rem + 0.9vw, 1.5rem);
    line-height: 1.2;
}
.card-subtitle {
    margin: 0 0 12px;
    color: #4f695b;
    font-size: 0.9rem;
}
form {
    display: grid;
    gap: 8px;
}
.auth-card label {
    font-weight: 600;
    color: #254838;
    font-size: 0.9rem;
}
.auth-card input {
    width: 100%;
    padding: 10px 11px;
    border: 1px solid #d7e9de;
    border-radius: 9px;
    font: inherit;
    font-size: 0.9rem;
    color: #153626;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.auth-card input:focus {
    outline: none;
    border-color: #1f704c;
    box-shadow: 0 0 0 4px rgba(31, 112, 76, 0.12);
}
.password-row {
    position: relative;
}
.password-row input {
    padding-right: 72px;
}
.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #1f704c;
    font-weight: 600;
    cursor: pointer;
}
.auth-card .button.primary {
    width: 100%;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    padding: 10px 14px;
    margin-top: 4px;
}
.button:disabled {
    opacity: 0.75;
    cursor: wait;
    transform: none !important;
}
.alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff3d8;
    color: #8a5a00;
    border: 1px solid #ffd89b;
}
.helper-text {
    margin: 8px 0 0;
    color: #4f695b;
    font-size: 0.9rem;
}
.helper-text a {
    color: #1f704c;
    font-weight: 600;
    text-decoration: none;
}
.helper-text a:hover {
    text-decoration: underline;
}
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-visual {
        min-height: 260px;
    }
}
@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .hero-card {
        grid-column: span 1;
        flex-direction: column;
        align-items: flex-start;
    }
}
@media (max-width: 720px) {
    html { font-size: 15px; }
    body { font-size: 0.96rem; }
    .auth-shell {
        padding: 12px;
    }
    .auth-card {
        padding: 16px 14px;
        border-radius: 14px;
    }
    .auth-card h1 {
        font-size: 1.2rem;
    }
    .card-subtitle {
        font-size: 0.85rem;
    }
    .auth-card input {
        padding: 9px 10px;
        font-size: 0.88rem;
    }
    .auth-card .button.primary {
        padding: 9px 12px;
        font-size: 0.88rem;
    }
    .overview-cards {
        grid-template-columns: 1fr;
    }
    .image-showcase {
        grid-template-columns: 1fr;
    }
    .dashboard-shell {
        padding: 16px;
    }
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
}
/*
     Hero Entrance Animation
*/

.hero-grid > div:first-child{
    animation: heroLeft .9s ease forwards;
}

.hero-visual{
    animation: heroRight 1s ease forwards;
}

.title-page-logo{
    opacity:0;
    animation: fadeUp .7s ease forwards;
}

.eyebrow{
    opacity:0;
    animation: fadeUp .7s ease .15s forwards;
}

.hero h1{
    opacity:0;
    animation: fadeUp .7s ease .3s forwards;
}

.hero p{
    opacity:0;
    animation: fadeUp .7s ease .45s forwards;
}

.hero-actions{
    opacity:0;
    animation: fadeUp .7s ease .6s forwards;
}

.hero-highlights{
    opacity:0;
    animation: fadeUp .7s ease .75s forwards;
}

@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(30px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

@keyframes heroLeft{

    from{
        opacity:0;
        transform:translateX(-40px);
    }

    to{
        opacity:1;
        transform:translateX(0);
    }

}

@keyframes heroRight{

    from{
        opacity:0;
        transform:translateX(40px);
    }

    to{
        opacity:1;
        transform:translateX(0);
    }

}
