:root {
    --primary-green: #2c9d5d;
    --primary-orange: #ff7f24;
    --dark-gray: #333333;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --error-red: #e74c3c;
    --success-green: #27ae60;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-gray);
    line-height: 1.6;
    background: linear-gradient(135deg, rgba(44, 157, 93, 0.05), rgba(255, 127, 36, 0.05));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-orange));
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.header-links {
    display: flex;
    gap: 1.5rem;
}

.header-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.header-link:hover {
    opacity: 1;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.auth-container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
    background-color: var(--white);
    min-height: 600px;
}

/* Auth Image Section */
.auth-image {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-orange));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.auth-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/auth-pattern.png');
    background-size: cover;
    opacity: 0.1;
}

.auth-image-content {
    position: relative;
    z-index: 1;
    max-width: 400px;
}

.auth-image h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.auth-image p {
    margin-bottom: 2rem;
    font-weight: 300;
    line-height: 1.7;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-item i {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Auth Forms Section */
.auth-forms {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.tab {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.6);
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab:hover {
    color: var(--primary-green);
}

.tab.active {
    color: var(--primary-green);
    border-bottom: 2px solid var(--primary-green);
}

.form-container {
    display: none;
    flex-direction: column;
    flex: 1;
}

.form-container.active {
    display: flex;
}

.form-title {
    margin-bottom: 1.5rem;
    color: var(--primary-green);
    font-size: 1.75rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-gray);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 2px rgba(44, 157, 93, 0.2);
}

.input-with-icon {
    position: relative;
}

.input-with-icon .form-input {
    padding-right: 2.5rem;
}

.input-with-icon i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.input-with-icon i:hover {
    color: var(--primary-green);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remember-me input[type="checkbox"] {
    accent-color: var(--primary-green);
}

.forgot-password {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #248c4f;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(44, 157, 93, 0.2);
}

.social-login {
    margin-top: 2rem;
}

.social-login-label {
    text-align: center;
    position: relative;
    margin-bottom: 1.5rem;
}

.social-login-label::before,
.social-login-label::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
}

.social-login-label::before {
    left: 0;
}

.social-login-label::after {
    right: 0;
}

.social-buttons {
    display: flex;
    gap: 1rem;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background-color: var(--light-gray);
}

.social-btn.google {
    color: #DB4437;
}

.social-btn.facebook {
    color: #4267B2;
}

.terms {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.6);
}

.terms a {
    color: var(--primary-green);
    text-decoration: none;
}

.terms a:hover {
    text-decoration: underline;
}

/* Form row for side-by-side inputs */
.form-row {
    display: flex;
    gap: 1rem;
}

.form-group.half {
    flex: 1;
}

/* Alert styles */
.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--error-red);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.alert-success {
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--success-green);
    border: 1px solid rgba(39, 174, 96, 0.2);
}

/* Utility classes */
.form-footer.centered {
    text-align: center;
    margin-top: 1.5rem;
}

.btn-link {
    background: none;
    color: var(--primary-green);
    text-decoration: underline;
    padding: 0;
    font-weight: 500;
}

.success-message {
    color: var(--success-green);
    margin-bottom: 1rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.text-center {
    text-align: center;
}

/* Responsive styles */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        max-width: 500px;
    }
    
    .auth-image {
        padding: 2rem;
        min-height: 300px;
    }
    
    .auth-forms {
        padding: 2rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group.half {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .tabs {
        width: 100%;
    }
    
    .tab {
        flex: 1;
        text-align: center;
    }
    
    .form-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .social-buttons {
        flex-direction: column;
    }
}
