:root {
    --primary-green: #2E7D32;
    --trust-blue: #0288D1;
    --accent-gray: #F5F5F5;
    --cta-green: #66BB6A;
    --cta-blue: #26C6DA;
    --error-red: #e53935;
    --logo-container: #ffffff;
}

/* ======= Base Styles ======= */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--trust-blue) 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    margin: 0;
}

/* ======= Logo Visibility Fixes ======= */
.auth-header {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    padding: 30px;
    text-align: center;
}

.auth-header img {
    width: 140px;
    height: auto;
    margin-bottom: 15px;
    padding: 12px;
    background: var(--logo-container);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* ======= Shared Components ======= */
.auth-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-5px);
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px 12px 40px;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 14px;
}

.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.input-icon {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-green);
    font-size: 16px;
}

.btn-auth {
    background: var(--cta-green);
    color: white;
    border: none;
    padding: 12px 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    width: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-auth:hover {
    background: #57A05A;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ======= Page-Specific Adjustments ======= */
.login-card {
    max-width: 400px;
}

.login-card .form-control {
    padding: 12px 15px;
}

.register-card {
    max-width: 600px;
}

.register-body {
    padding: 30px;
}

.required-asterisk {
    color: var(--error-red);
    font-size: 0.8em;
    vertical-align: super;
}

/* ======= Enhanced Utilities ======= */
.links a {
    color: var(--trust-blue);
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.links a:hover {
    color: #02639E;
    text-decoration: none;
}

.links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.links a:hover::after {
    width: 100%;
}

.error-message {
    color: var(--error-red);
    font-size: 0.9em;
    margin-top: 5px;
    display: block;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.powered-by {
    background: var(--accent-gray);
    padding: 15px;
    text-align: center;
    font-size: 0.9em;
    color: #666;
    border-top: 1px solid #eee;
}

.checkbox label {
    color: #666;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .auth-card {
        margin: 20px;
        width: calc(100% - 40px);
    }

    .auth-header img {
        width: 100px;
        padding: 8px;
    }

    .btn-auth {
        padding: 10px 15px;
        font-size: 14px;
    }
}



