/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* CSS Variables - Matching Landing Page */
:root {
    --uniops-green: #1e703d;
    --uniops-green-dark: #166534;
    --uniops-green-light: #22c55e;
    --uniops-purple: #5b67ff;
    --uniops-dark: #1f2937;
    --uniops-light: #f8fafc;
    --background: #ffffff;
    --foreground: #1f2937;
    --muted-foreground: #6b7280;
    --border: #e5e7eb;
    --input: #f3f4f6;
    --card: #ffffff;
    --card-foreground: #1f2937;
    --error: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --font-sans: 'Inter', sans-serif;
    --radius: 0.75rem;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--foreground);
    background: linear-gradient(135deg, var(--uniops-green) 0%, var(--uniops-green-dark) 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Login Navbar */
.login-navbar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo .logo {
    height: 45px;
    width: auto;
    background: white;
    padding: 8px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.nav-link:hover {
    opacity: 1;
    color: #e5e7eb;
}

/* Language Dropdown */
.language-dropdown {
    position: relative;
}

.language-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.language-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border);
}

.language-item:last-child {
    border-bottom: none;
}

.language-item:hover {
    background: var(--uniops-light);
    color: var(--uniops-green);
}

.language-item.active {
    background: var(--uniops-green);
    color: white;
}

/* Login Container */
.login-container {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.login-wrapper {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    min-height: 600px;
}

@media (min-width: 768px) {
    .login-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

/* Left Side - Illustration */
.login-illustration {
    background: linear-gradient(135deg, var(--uniops-green) 0%, var(--uniops-green-dark) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}

.illustration-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 400px;
}

.welcome-title {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.brand-text {
    color: #e5e7eb;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
}

.welcome-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    line-height: 1.6;
}

/* Illustration Graphics */
.illustration-graphics {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.graphic-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

.graphic-element i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
}

.graphic-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.graphic-2 {
    top: 60%;
    left: 20%;
    animation-delay: 2s;
}

.graphic-3 {
    top: 30%;
    right: 15%;
    animation-delay: 4s;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: var(--shadow-xl);
    animation: float 4s ease-in-out infinite;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 3;
}

.card-analytics {
    bottom: 20%;
    left: 10%;
    animation-delay: 1s;
}

.card-productivity {
    top: 40%;
    right: 10%;
    animation-delay: 3s;
}

.card-icon {
    width: 40px;
    height: 40px;
    background: var(--uniops-green);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon i {
    color: white;
    font-size: 1.1rem;
}

.card-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted-foreground);
    margin-bottom: 0.25rem;
}

.card-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--uniops-green);
}

/* Right Side - Login Form */
.login-form-section {
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--uniops-dark);
    margin-bottom: 0.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.form-subtitle {
    font-size: 1.1rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

/* Form Styles */
.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--uniops-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    background: var(--background);
    color: var(--foreground);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--uniops-green);
    box-shadow: 0 0 0 3px rgba(30, 112, 61, 0.1);
}

.form-control.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-control.filled {
    background: var(--uniops-light);
    border-color: var(--uniops-green);
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-wrapper.focused .input-icon {
    color: var(--uniops-green);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.password-toggle:hover {
    color: var(--uniops-green);
}

/* Error Messages */
.error-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--error);
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.error-message i {
    font-size: 0.8rem;
}

/* Alert */
.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.forgot-password {
    color: var(--uniops-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: var(--uniops-green-dark);
    text-decoration: underline;
}

/* Recaptcha */
.recaptcha-wrapper {
    margin-bottom: 1.5rem;
}

/* Login Button */
.login-button {
    width: 100%;
    background: var(--uniops-green);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.login-button:hover:not(:disabled) {
    background: var(--uniops-green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.login-button:active {
    transform: translateY(0);
}

.login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.button-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-loader i {
    font-size: 1.1rem;
}

/* Signup Link */
.signup-link {
    text-align: center;
}

.signup-link p {
    color: var(--muted-foreground);
    font-weight: 500;
}

.register-link {
    color: var(--uniops-green);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.register-link:hover {
    color: var(--uniops-green-dark);
    text-decoration: underline;
}

/* Footer */
.login-footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.footer-content a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.footer-content a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-form-container {
    animation: fadeInUp 0.8s ease-out;
}

.illustration-content {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Responsive Design */
@media (max-width: 767px) {
    .nav-links {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
    
    .login-container {
        padding: 1rem;
    }
    
    .login-form-section {
        padding: 2rem 1.5rem;
    }
    
    .form-title {
        font-size: 2rem;
    }
    
    .welcome-title {
        font-size: 1.6rem;
    }
    
    .floating-card {
        display: none;
    }
    
    .login-illustration {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-end;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    .form-title {
        font-size: 1.8rem;
    }
    
    .welcome-title {
        font-size: 1.4rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --background: #111827;
        --foreground: #f9fafb;
        --muted-foreground: #9ca3af;
        --border: #374151;
        --input: #1f2937;
        --card: #1f2937;
        --card-foreground: #f9fafb;
    }
}