:root {
    --bg-color: #ffffff;
    --panel-bg: #ffffff;
    --panel-border: #e5e7eb;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --accent-color: #f26522; /* GoEasy Orange */
    --accent-glow: rgba(242, 101, 34, 0.15);
    --success-color: #059669;
    --input-bg: #f9fafb;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at top right, rgba(242, 101, 34, 0.03), transparent 30%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.container {
    width: 100%;
    max-width: 850px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.logo {
    max-width: 140px;
    width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
    display: inline-block;
}

h1 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

input, select {
    width: 100%;
    padding: 0.75rem;
    background: var(--input-bg);
    border: 1px solid #d1d5db;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

input:focus, select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

button {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, #f26522, #de5613);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(242, 101, 34, 0.2);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px var(--accent-glow);
}

.results-panel {
    background: #f9fafb;
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #e5e7eb;
}

.result-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.result-item.highlight {
    background: linear-gradient(135deg, rgba(242, 101, 34, 0.05), rgba(242, 101, 34, 0.1));
    padding: 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(242, 101, 34, 0.2);
}

.result-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.result-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.highlight .result-value {
    font-size: 1.5rem;
    color: #de5613;
}

.tax-benefits {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: rgba(5, 150, 105, 0.05);
    border: 1px solid rgba(5, 150, 105, 0.2);
    border-radius: 10px;
}

.tax-title {
    color: var(--success-color);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.legal-notes {
    margin-top: 1rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.legal-notes ul {
    list-style-type: none;
    padding: 0;
}

.legal-notes li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1rem;
}

.legal-notes li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Spinner */
.loader {
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Login Page Specific Styles - EXACT MATCH TO REFERENCE */
.login-page {
    background-color: #f0f2f5; /* Greyish background */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
    font-family: 'Inter', sans-serif;
}

.login-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 28px; /* Smooth rounded corners */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 440px;
    text-align: center;
}

.login-header {
    margin-bottom: 2.5rem;
}

.login-logo {
    max-width: 220px;
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
    display: inline-block;
    border: 1.5px solid #111;
    border-radius: 12px;
    padding: 12px;
    background: white;
}

.login-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #333d4d;
    margin-bottom: 0.6rem;
}

.login-header p {
    color: #718096;
    font-size: 1.05rem;
    font-weight: 500;
}

.login-page label {
    display: block;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.8rem;
    margin-top: 1.5rem;
}

.login-page input {
    width: 100%;
    padding: 1rem;
    background: #edf2ff; /* Light bluish tint like reference */
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    color: #2d3748;
    font-size: 1.1rem;
    text-align: left;
    transition: all 0.2s;
}

.login-page input:focus {
    border-color: #f26522;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.1);
}

.btn-login {
    width: 100% !important;
    padding: 1.15rem !important;
    background: #e65100 !important; /* Deeper orange */
    color: white !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 16px !important;
    cursor: pointer !important;
    margin-top: 2.5rem !important;
    transition: all 0.2s !important;
}

.btn-login:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 15px rgba(230, 81, 0, 0.3);
}

.login-footer {
    display: none; /* Hide footer on login to match clean look */
}

.login-message {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    min-height: 1.5rem;
}
