/* ThuanHai Agri Professional Backend Login */

/* Import Tailwind CSS */
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');

/* Reset default Odoo login styles */
body.o_web_client {
    background: #f0fdf4 !important;
}

/* Hide default Odoo login container */
.o_login_page .container {
    display: none;
}

/* Login Wrapper */
.thuanhai-login-wrapper {
    min-height: 100vh;
    display: flex;
    background: #f0fdf4;
}

/* Left Branding Section - Agriculture Green Theme */
.thuanhai-login-branding {
    display: none;
    width: 50%;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    position: relative;
    overflow: hidden;
    padding: 4rem;
    color: white;
}

@media (min-width: 1024px) {
    .thuanhai-login-branding {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

.thuanhai-login-branding::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255,255,255,0.05) 39px, rgba(255,255,255,0.05) 40px),
        repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(255,255,255,0.05) 39px, rgba(255,255,255,0.05) 40px);
    opacity: 0.3;
}

/* Animated agriculture background */
.thuanhai-login-branding::after {
    content: '🌾';
    position: absolute;
    font-size: 15rem;
    opacity: 0.1;
    right: -3rem;
    bottom: -3rem;
    animation: sway 6s ease-in-out infinite;
}

@keyframes sway {
    0%, 100% { transform: translateY(0px) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.thuanhai-login-branding-content {
    position: relative;
    z-index: 1;
}

.thuanhai-login-logo {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.thuanhai-login-tagline {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
}

.thuanhai-login-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.thuanhai-login-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.thuanhai-login-feature-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.thuanhai-login-feature-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.thuanhai-login-feature-content p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.thuanhai-login-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.thuanhai-login-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.thuanhai-login-stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Right Form Section */
.thuanhai-login-form-section {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

@media (min-width: 1024px) {
    .thuanhai-login-form-section {
        width: 50%;
    }
}

.thuanhai-login-form-container {
    width: 100%;
    max-width: 28rem;
}

.thuanhai-login-mobile-logo {
    text-align: center;
    margin-bottom: 2rem;
}

@media (min-width: 1024px) {
    .thuanhai-login-mobile-logo {
        display: none;
    }
}

.thuanhai-login-mobile-logo h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.thuanhai-login-mobile-logo p {
    color: #6b7280;
    margin: 0;
}

.thuanhai-login-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 2rem;
    border: 1px solid #dcfce7;
}

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

.thuanhai-login-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.thuanhai-login-header p {
    color: #6b7280;
    margin: 0;
}

/* Override Odoo default form styles */
.thuanhai-login-card .mb-3 {
    margin-bottom: 1rem !important;
}

.thuanhai-login-card .form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.thuanhai-login-card .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
}

.thuanhai-login-card .form-control:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.thuanhai-login-card .btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.thuanhai-login-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(22, 163, 74, 0.3);
}

.thuanhai-login-card .btn-primary:active {
    transform: translateY(0);
}

.thuanhai-login-card .alert {
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.thuanhai-login-card .alert-danger {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.thuanhai-login-card .alert-success {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    color: #166534;
}

.thuanhai-login-divider {
    margin-top: 2rem;
    position: relative;
    text-align: center;
}

.thuanhai-login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.thuanhai-login-divider span {
    position: relative;
    background: white;
    padding: 0 1rem;
    color: #9ca3af;
    font-size: 0.875rem;
}

.thuanhai-login-signup {
    margin-top: 1.5rem;
    text-align: center;
}

.thuanhai-login-signup p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.thuanhai-login-signup a {
    color: #16a34a;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.thuanhai-login-signup a:hover {
    color: #15803d;
}

.thuanhai-login-footer {
    margin-top: 2rem;
    text-align: center;
}

.thuanhai-login-footer p {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.thuanhai-login-footer-links a {
    font-size: 0.875rem;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.thuanhai-login-footer-links a:hover {
    color: #6b7280;
}

