:root {
    --primary-color: #4A8B2C;  /* FarmSmarter green */
    --primary-hover: #3A6E22;
    --secondary-color: #FFD700;  /* Yellow accent */
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --text-primary: #1A2F0F;
    --text-secondary: #666666;
    --error-color: #dc3545;
    --success-color: #4A8B2C;
    --border-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'JetBrains Mono', monospace;
}

body {
    /* font-family: 'JetBrains Mono', monospace; */
    background-color: var(--background-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Keep Inter for certain elements if desired
.auth-header p,
.auth-footer,
.footer-links {
    font-family: 'Inter', sans-serif;
} */

.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 1.5rem;
}

.auth-card {
    background-color: var(--card-background);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.brand-header {
    text-align: center;
    margin-bottom: 2rem;
}

.brand-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 1rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

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

.form-group label {
    display: block;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: #fff;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(74, 139, 44, 0.1);
}

.auth-button {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 1rem;
}

.auth-button:hover {
    background-color: var(--primary-hover);
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Message styling */
.message {
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-message {
    background-color: #fff2f2;
    color: var(--error-color);
    border: 1px solid #ffe0e0;
}

.success-message {
    background-color: #f0f7ed;
    color: var(--success-color);
    border: 1px solid #e0eeda;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
    }
    
    .auth-container {
        padding: 1rem;
    }
}

/* Select styling */
select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: 1rem;
    background-color: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%234A8B2C' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(74, 139, 44, 0.1);
}

/* Checkbox styling */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 0.375rem;
    cursor: pointer;
}

.checkbox-wrapper label {
    margin-bottom: 0;
    cursor: pointer;
}

/* Spinner animation */
.spinner {
    width: 50px;
    height: 50px;
    margin-bottom: 1.5rem;
    animation: rotate 2s linear infinite;
}

.spinner .path {
    stroke: var(--primary-color);
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

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

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Loading state */
.auth-button.loading .button-text {
    display: none;
}

.auth-button.loading .button-loader {
    display: inline-block;
}

.pending-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.verification-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* Admin styles */
.admin-container {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-header h1 {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 600;
}

.users-table {
    min-height: 200px;
    background: var(--card-background);
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.users-table table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th,
.users-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.users-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: var(--text-primary);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-badge.verified {
    background-color: #e6f4ea;
    color: #1e7e34;
}

.status-badge.active {
    background-color: #e6f4ea;
    color: #1e7e34;
}

.status-badge.pending {
    background-color: #fff3cd;
    color: #856404;
}

.actions {
    display: flex;
    gap: 0.5rem;
}

.action-button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.action-button.approve {
    background: var(--primary-color);
    color: white;
}

.action-button.approve:hover {
    background: var(--primary-hover);
}

.action-button.revoke {
    background: #fef1f2;
    color: #dc3545;
}

.action-button.revoke:hover {
    background: #fde8ea;
}

.action-button.delete {
    background: #dc3545;
    color: white;
}

.action-button.delete:hover {
    background: #c82333;
}

.back-button {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}

.back-button:hover {
    background: #e9ecef;
}

/* Message styles */
.message {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.success-message {
    background: #e6f4ea;
    color: #1e7e34;
}

.error-message {
    background: #fef1f2;
    color: #dc3545;
}

.loading-row td {
    padding: 3rem !important;
}

.table-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-secondary);
}

.table-message .spinner {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.header-logo {
    height: 40px;
    width: auto;
}

.admin-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: #fff;
    border-bottom: 1px solid #e5e7eb;
} 