﻿/* Global Styles */
:root {
    --primary: #8DC63F;
    --primary-dark: #7DB131;
    --primary-light: #A1D154;
    --secondary: #004236;
    --neutral-light: #F8F9FA;
    --neutral-mid: #E9ECEF;
    --neutral-dark: #343A40;
    --white: #FFFFFF;
    --black: #000000;
    --accent: #FF9800;
    --danger: #DC3545;
    --success: #198754;
    --warning: #FFC107;
    --font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html, body {
    height: 100%;
    font-family: var(--font-family);
    color: var(--neutral-dark);
    background-color: var(--neutral-light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.auth-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.form-label {
    color: var(--neutral-dark);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

/* Layout Styles */
.brand-column {
    background-color: var(--secondary);
    overflow: hidden;
    position: relative;
}

.brand-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-column {
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-container {
    max-width: 440px;
    width: 100%;
}

.auth-wrapper {
    padding: 1.5rem;
}

/* Form Elements */
.form-control {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    border: 1px solid var(--neutral-mid);
    background-color: var(--white);
    transition: var(--transition);
}

    .form-control:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 0.25rem rgba(141, 198, 63, 0.25);
    }

    .form-control::placeholder {
        color: #ADB5BD;
        opacity: 0.7;
    }

.password-input-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ADB5BD;
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    transition: var(--transition);
}

    .password-toggle:hover {
        color: var(--primary);
    }

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

    .btn-primary:hover, .btn-primary:focus {
        background-color: var(--primary-dark);
        border-color: var(--primary-dark);
        box-shadow: 0 0 0 0.25rem rgba(141, 198, 63, 0.25);
    }

.user-type-btn {
    border-radius: 0;
    background-color: var(--white);
    border: 1px solid var(--neutral-mid);
    color: var(--neutral-dark);
    padding: 0.75rem 0;
    width: 100%;
    font-weight: 500;
    transition: var(--transition);
}

    .user-type-btn:first-child {
        border-top-left-radius: 4px;
        border-bottom-left-radius: 4px;
    }

    .user-type-btn:last-child {
        border-top-right-radius: 4px;
        border-bottom-right-radius: 4px;
    }

    .user-type-btn.active {
        background-color: var(--primary);
        border-color: var(--primary);
        color: var(--white);
    }

.btn-social {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.5rem;
    background-color: var(--white);
    border: 1px solid var(--neutral-mid);
    transition: var(--transition);
}

    .btn-social:hover {
        transform: translateY(-2px);
        box-shadow: var(--box-shadow);
    }

/* Dividers and Links */
.auth-divider {
    position: relative;
    text-align: center;
    font-size: 0.9rem;
    color: #6C757D;
    margin: 1.5rem 0;
}

    .auth-divider::before, .auth-divider::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 30%;
        height: 1px;
        background-color: var(--neutral-mid);
    }

    .auth-divider::before {
        left: 0;
    }

    .auth-divider::after {
        right: 0;
    }

.auth-link {
    color: var(--neutral-dark);
    text-decoration: none;
    transition: var(--transition);
}

    .auth-link:hover {
        color: var(--primary);
    }

    .auth-link.highlight {
        color: var(--primary);
        font-weight: 500;
    }

        .auth-link.highlight:hover {
            text-decoration: underline;
        }

/* Decorative Elements */
.dots-decoration {
    position: absolute;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(var(--primary) 2px, transparent 2px);
    background-size: 10px 10px;
    opacity: 0.5;
}

.dots-top-right {
    top: 40px;
    right: 40px;
}

.dots-bottom-left {
    bottom: 40px;
    left: 40px;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .auth-column {
        min-height: 100vh;
    }

    .auth-container {
        padding: 1rem;
    }
}

@media (max-width: 767.98px) {
    .auth-wrapper {
        padding: 1rem 0;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .auth-column {
        padding: 1rem;
    }

    .dots-decoration {
        width: 60px;
        height: 60px;
    }

    .dots-top-right {
        top: 20px;
        right: 20px;
    }

    .dots-bottom-left {
        bottom: 20px;
        left: 20px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-wrapper {
    animation: fadeIn 0.5s ease;
}

/* Accessibility */
.form-control:focus, .btn:focus {
    outline: none;
}

/* High Contrast Mode */
@media (forced-colors: active) {
    .btn-primary {
        background-color: Highlight;
        color: HighlightText;
    }

    .auth-link {
        color: LinkText;
    }
}
