/* Modern styling for auth pages */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 10px;
}

.login-box {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 400px;
    transition: transform 0.3s ease;
}

.login-box:hover {
    transform: translateY(-5px);
}

.login-box h2 {
    text-align: center;
    color: #6D597A;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.input-group {
    margin-bottom: 1.2rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.input-group input:focus {
    outline: none;
    border-color: #E56B6F;
    background: white;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.login-btn {
    width: 100%;
    padding: 0.875rem;
    background: #E56B6F;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.login-btn:hover {
    background: #B56576;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
}

.divider {
    text-align: center;
    margin: 1.5rem 0;
    color: #718096;
    position: relative;
    font-size: 0.9rem;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #e2e8f0;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.google-btn {
    width: 100%;
    padding: 0.875rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    font-weight: 500;
    color: #4a5568;
}

.google-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.google-btn img {
    width: 20px;
    height: 20px;
}

.register-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #718096;
    font-size: 0.9rem;
}

.register-link a {
    color: #E56B6F;
    text-decoration: none;
    font-weight: 500;
    margin-left: 0.25rem;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Error message styling */
.error-message {
    background: #FEE2E2;
    color: #DC2626;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: none;
}

.error-message.show {
    display: block;
}

/* Success message styling */
.success-message {
    background: #DCFCE7;
    color: #16A34A;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: none;
}

.success-message.show {
    display: block;
}

.messageDiv {
    color: white;
    padding: 10px 20px;
    margin: 10px;
    border-radius: 5px;
    font-size: 1rem;
    opacity: 0;
    display: none;
    transition: opacity 0.5s ease-in-out;
}

.messageDiv.visible {
    display: block;
    opacity: 1;
}

.messageDiv.success {
    background-color: #16A34A !important;
}

.messageDiv.error {
    background-color: #DC2626 !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.messageDiv.visible {
    display: block;
    animation: fadeIn 0.3s ease-in-out forwards;
}

/* Update the auth-nav styling */
.auth-nav {
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    width: 100%;
    padding: 8px 20px;
    background-color: #6d597a;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    justify-content: flex-end;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Add padding-top to body when auth-nav is present */
body:has(.auth-nav) {
    padding-top: 55px;
}

/* Fallback for older browsers - add class to body via JS if needed */
body.has-auth-nav {
    padding-top: 55px;
}

/* Update button padding */
.auth-nav-btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    min-width: 110px;
    text-align: center;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Style for Prisijungti button */
.auth-nav-btn.loginBtn {
    background-color: white;
    color: #6d597a;
    border: 2px solid white;
}

.auth-nav-btn.loginBtn:hover {
    background-color: white;
    color: #6d597a;
}

/* Style for Registruotis button */
.auth-nav-btn.registerBtn {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    transition: all 0.3s ease;
}

.auth-nav-btn.registerBtn:hover {
    background-color: white;
    color: #6d597a;
}

/* Mobile-specific adjustments */
@media (max-width: 480px) {
    .auth-nav {
        padding: 8px 7px;
        gap: 6px;
    }
    
    .auth-nav-btn {
        padding: 7px 9px;
        font-size: 14px;
        min-width: 80px;
    }
}

/* Add these styles for main menu */
.main-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
}

.menu-container {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.menu-btn {
    width: 100%;
    padding: 1rem;
    background: #E56B6F;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-btn:hover:not([disabled]) {
    background: #B56576;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
}

.menu-btn[disabled] {
    background: #CBD5E0;
    cursor: not-allowed;
}

/* Update auth.css to use variables */
.auth-container {
    background: var(--bg-white);
    box-shadow: var(--box-shadow);
}

.auth-title {
    color: var(--text-primary);
}

.auth-input {
    border: 1px solid var(--text-secondary);
}

.auth-btn {
    background: var(--primary);
    color: var(--text-light);
}

.auth-btn:hover {
    background-color: #355070;
    transform: translateY(-2px);
}

.auth-link {
    color: var(--primary);
}

.forgot-password {
    display: block;
    text-align: right;
    color: var(--primary);
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: 0.5rem;
    transition: color 0.2s ease;
}

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

/* Add header styling */
.header {
    background-color: #355070;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 24px;
    font-weight: bold;
    margin-top: 45px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Mobile responsive styles */
@media screen and (max-width: 768px) {
    .login-container {
        padding: 20px;
        align-items: flex-start; /* Helps with keyboard visibility */
    }

    .login-box {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .login-box h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    /* Make input fields larger and more touch-friendly */
    .input-group {
        margin-bottom: 1.5rem;
    }

    .input-group label {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .input-group input {
        height: 50px;
        font-size: 1.1rem;
        padding: 0.8rem;
    }

    /* Larger buttons for better touch targets */
    .login-btn {
        height: 55px;
        font-size: 1.2rem;
        margin: 1.5rem 0;
    }

    .google-btn {
        height: 55px;
        font-size: 1.1rem;
        padding: 0.8rem;
    }

    .google-btn img {
        width: 24px;
        height: 24px;
    }

    /* Larger text for links and dividers */
    .forgot-password {
        font-size: 1rem;
        padding: 0.5rem 0;
        display: inline-block;
    }

    .divider {
        margin: 2rem 0;
        font-size: 1rem;
    }

    .register-link {
        font-size: 1rem;
        margin-top: 2rem;
    }

    .register-link a {
        padding: 0.5rem 0;
        display: inline-block;
    }

    /* Error and success messages */
    .messageDiv {
        font-size: 1.1rem;
        padding: 1rem;
        margin: 1rem 0;
    }
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
    .login-container {
        padding: 15px;
    }

    .login-box {
        padding: 1.2rem;
    }

    .login-box h2 {
        font-size: 1.8rem;
    }

    .input-group input {
        height: 45px;
        font-size: 1rem;
    }

    .login-btn,
    .google-btn {
        height: 50px;
        font-size: 1.1rem;
    }
}

/* Fix for iOS input zoom */
@media screen and (max-width: 768px) {
    input[type="email"],
    input[type="password"],
    input[type="text"] {
        font-size: 16px !important;
    }
}