@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Georgian:wght@100..900&family=Reddit+Mono:wght@200..900&display=swap');

.noto-sans-georgian-ardi {
    font-family: "Noto Sans Georgian", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

:root {
    --background: 0 0% 100%;
    --foreground: 240 10% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 240 10% 3.9%;
    --primary: 240 5.9% 10%;
    --primary-button: hsl(167.6, 100%, 23.73%);
    --primary-foreground: 0 0% 98%;
    --muted: 240 4.8% 95.9%;
    --muted-foreground: 240 3.8% 46.1%;
    --border: 240 5.9% 90%;
    --input: 240 5.9% 90%;
    --ring: 240 5.9% 10%;
    --radius: 0.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans Georgian", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.5;
    font-size: 14px;
}

.login-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.login-container {
    display: grid;
    grid-template-columns: 50% 50%;
    flex: 1;
}

.login-image {
    background-image: url('../images/login-background.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem 3rem 2rem 3rem;
}

.login-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
}

.login-image-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 100%;
    color: white;
}

.login-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 2rem;
    margin-top: 5rem;
}

.login-logo-wrapper img {
    width: 140px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.login-tagline-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    margin: 0;
}

.login-tagline-wrapper svg {
    width: 280px;
    height: auto;
    max-width: 100%;
}

.login-footer-info {
    display: flex;
    flex-direction: row;
    gap: 5rem;
    margin-top: auto;
    padding-bottom: 0;
    margin: 0 auto;
}

.login-footer-info p {
    font-size: 0.875rem;
    margin: 0;
    opacity: 0.95;
    color: white;
    line-height: 1.6;
}

.login-image-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.login-image-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 500px;
}

.login-form-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 4rem;
    background: white;
}

.login-form-wrapper {
    width: 100%;
    max-width: 400px;
}

.login-header {
    margin-bottom: 2rem;
}

.login-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.login-header p {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.login-header p a {
    color: hsl(var(--primary));
    text-decoration: none;
    font-weight: 500;
}

.login-header p a:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.form-label .form-check-input {
    margin-right: 0.5rem;
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 0.9375rem;
    transition: all 0.15s ease;
    font-family: "Noto Sans Georgian", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.form-input::placeholder {
    color: hsl(var(--muted-foreground));
}

.forgot-password {
    text-align: center;
    margin-top: 1.5rem;
}

.forgot-password a {
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.forgot-password a:hover {
    color: hsl(var(--foreground));
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: #14b8a6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Noto Sans Georgian", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.btn-login:hover {
    background: #0d9488;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.4);
}

.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: hsl(var(--border));
}

.divider span {
    position: relative;
    background: hsl(var(--background));
    padding: 0 0.75rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.btn-oauth {
    width: 100%;
    padding: 0.625rem 1rem;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.btn-oauth:hover {
    background: hsl(var(--muted));
}

.btn-oauth svg {
    width: 16px;
    height: 16px;
}

.terms {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.terms a {
    color: hsl(var(--foreground));
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Footer info in right panel */
.login-footer-info a {
    color: white;
    text-decoration: none;
}

.login-footer-info a:hover {
    color: #14b8a6;
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .login-container {
        grid-template-columns: 1fr;
    }

    .login-image {
        display: none;
    }

    .login-form-container {
        padding: 2rem;
    }
}

@media (max-width: 640px) {
    .login-form-container {
        padding: 1.5rem;
    }

    .login-tagline-wrapper svg {
        width: 150px;
    }

    .login-logo-wrapper img {
        width: 70px;
    }
}