:root {
    --primary-green: #00DB6D;
    --primary-green-hover: #00C260;
    --navy-blue: #0F172A;
    --text-muted: #64748B;
    --text-dark: #1E293B;
    --input-bg: #FFFFFF;
    --input-border: #E2E8F0;
    --card-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #abbb9d 0%, #7d8b74 100%);
    background-image: url('../img/rice-field.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.auth-header {
    padding: 0.75rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #f1f5f9;
}

.govt-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.govt-logo {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.govt-logo img {
    height: 100%;
    object-fit: contain;
}

.brand-text h1 {
    font-size: 15px;
    margin: 0;
    font-weight: 700;
    color: #1a1a1a;
}

.brand-text p {
    font-size: 11px;
    margin: 0;
    font-weight: 700;
    color: #16a34a;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-lang {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
}

.btn-lang span {
    margin-left: 8px;
    color: #94a3b8;
}

.btn-theme {
    background: none;
    border: none;
    font-size: 18px;
    color: #334155;
    cursor: pointer;
    padding: 0;
}

/* Center Content */
.auth-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: #FFFFFF;
    width: 100%;
    max-width: 480px;
    border-radius: 32px;
    padding: 48px;
    box-shadow: var(--card-shadow);
    text-align: center;
}

.tractor-icon-wrapper {
    width: 72px;
    height: 72px;
    background: #DCFCE7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
}

.tractor-icon-wrapper i {
    font-size: 32px;
    color: #16a34a;
}

.auth-card h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    letter-spacing: -0.025em;
}

.auth-card .subtitle {
    font-size: 13px;
    font-weight: 700;
    color: #16a34a;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Form Styling */
.form-group {
    text-align: left;
    margin-bottom: 24px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    display: block;
}

.input-group {
    display: flex;
    align-items: stretch;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
}

.input-group:focus-within {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.input-prefix {
    padding: 12px 20px;
    font-weight: 600;
    color: #64748B;
    background: #F8FAFC;
    border-right: 1px solid #E2E8F0;
}

.input-group input {
    border: none;
    background: white;
    padding: 12px 20px;
    flex: 1;
    font-size: 15px;
    color: #1e293b;
    outline: none;
}

.input-group input::placeholder {
    color: #94a3b8;
}

.btn-send-otp {
    background: #00DB6D;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 219, 109, 0.2);
    transition: all 0.2s;
}

.btn-send-otp:hover {
    background: #00C260;
    transform: translateY(-1px);
}

/* Separator */
.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 40px 0;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #f1f5f9;
}

.separator span {
    padding: 0 16px;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* OTP Digits */
.otp-digit-box {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.otp-box {
    width: 60px;
    height: 60px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    background: white;
    outline: none;
    transition: all 0.2s;
}

.otp-box:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.resend-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.resend-link {
    font-size: 13px;
    color: #64748B;
    text-decoration: none;
    font-weight: 500;
}

.timer {
    font-size: 13px;
    color: #94a3b8;
    font-family: inherit;
}

.btn-login {
    background: #0F172A;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.2);
}

.btn-login:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

.btn-login:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    box-shadow: none;
}

.secure-tag {
    margin-top: 32px;
    font-size: 12px;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.secure-tag i {
    color: #16a34a;
}

/* Footer */
.auth-footer {
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-top: 1px solid #f1f5f9;
}

.auth-footer p {
    font-size: 13px;
    color: #64748B;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: #16a34a;
}